Huge FML Update
This commit is contained in:
@ -5,7 +5,8 @@ namespace FML\Controls;
|
||||
use FML\Types\Scriptable;
|
||||
|
||||
/**
|
||||
* Class representing Frame3d Elements (CMlFrame)
|
||||
* Frame3d Element
|
||||
* (CMlFrame)
|
||||
*
|
||||
* @author steeffeen
|
||||
*/
|
||||
@ -19,8 +20,7 @@ class Frame3d extends Frame implements Scriptable {
|
||||
/**
|
||||
* Construct a new Frame3d Control
|
||||
*
|
||||
* @param string $id
|
||||
* Control Id
|
||||
* @param string $id (optional) Control Id
|
||||
*/
|
||||
public function __construct($id = null) {
|
||||
parent::__construct($id);
|
||||
@ -30,12 +30,11 @@ class Frame3d extends Frame implements Scriptable {
|
||||
/**
|
||||
* Set style3d
|
||||
*
|
||||
* @param string $style3d
|
||||
* 3D Style
|
||||
* @param string $style3d 3D Style
|
||||
* @return \FML\Controls\Frame3d
|
||||
*/
|
||||
public function setStyle3d($style3d) {
|
||||
$this->style3d = $style3d;
|
||||
$this->style3d = (string) $style3d;
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -54,13 +53,13 @@ class Frame3d extends Frame implements Scriptable {
|
||||
* @see \FML\Controls\Frame::render()
|
||||
*/
|
||||
public function render(\DOMDocument $domDocument) {
|
||||
$xml = parent::render($domDocument);
|
||||
$xmlElement = parent::render($domDocument);
|
||||
if ($this->style3d) {
|
||||
$xml->setAttribute('style3d', $this->style3d);
|
||||
$xmlElement->setAttribute('style3d', $this->style3d);
|
||||
}
|
||||
if ($this->scriptEvents) {
|
||||
$xml->setAttribute('scriptevents', $this->scriptEvents);
|
||||
$xmlElement->setAttribute('scriptevents', $this->scriptEvents);
|
||||
}
|
||||
return $xml;
|
||||
return $xmlElement;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user