tagName = 'frame3d'; } /** * Set Style3d Id * * @param string $style3dId Style3d Id * @return \FML\Controls\Frame3d */ public function setStyle3dId($style3dId) { $this->style3dId = (string) $style3dId; $this->style3d = null; return $this; } /** * Set Style3d * * @param Style3d $style3d Style3d Object * @return \FML\Controls\Frame3d */ public function setStyle3d(Style3d $style3d) { $this->style3d = $style3d; return $this; } /** * * @see \FML\Types\Scriptable::setScriptEvents() */ public function setScriptEvents($scriptEvents) { $this->scriptEvents = ($scriptEvents ? 1 : 0); return $this; } /** * * @see \FML\Controls\Frame::render() */ public function render(\DOMDocument $domDocument) { $xmlElement = parent::render($domDocument); if ($this->style3d) { $this->style3d->checkId(); $xmlElement->setAttribute('style3d', $this->style3d->getId()); } else if ($this->style3dId) { $xmlElement->setAttribute('style3d', $this->style3dId); } if ($this->scriptEvents) { $xmlElement->setAttribute('scriptevents', $this->scriptEvents); } return $xmlElement; } }