FML Update
This commit is contained in:
@ -17,33 +17,14 @@ use FML\Types\ScriptFeatureable;
|
||||
*/
|
||||
class Frame extends Control implements Container {
|
||||
/*
|
||||
* Protected Properties
|
||||
* Protected properties
|
||||
*/
|
||||
protected $tagName = 'frame';
|
||||
/** @var Renderable[] $children */
|
||||
protected $children = array();
|
||||
/** @var Format $format */
|
||||
protected $format = null;
|
||||
|
||||
/**
|
||||
* Construct a new Frame Control
|
||||
*
|
||||
* @param string $id (optional) Control Id
|
||||
*/
|
||||
public function __construct($id = null) {
|
||||
parent::__construct($id);
|
||||
$this->tagName = 'frame';
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new Frame Control
|
||||
*
|
||||
* @param string $id (optional) Control Id
|
||||
* @return \FML\Controls\Frame
|
||||
*/
|
||||
public static function create($id = null) {
|
||||
$frame = new Frame($id);
|
||||
return $frame;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see \FML\Controls\Control::getManiaScriptClass()
|
||||
*/
|
||||
@ -110,7 +91,6 @@ class Frame extends Control implements Container {
|
||||
$xmlElement->appendChild($formatXml);
|
||||
}
|
||||
foreach ($this->children as $child) {
|
||||
/** @var Renderable $child */
|
||||
$childXmlElement = $child->render($domDocument);
|
||||
$xmlElement->appendChild($childXmlElement);
|
||||
}
|
||||
|
Reference in New Issue
Block a user