tagName = 'frame'; } /** * * @see \FML\Types\Container::add() * @return \FML\Controls\Frame */ public function add(Renderable $child) { array_push($this->children, $child); return $this; } /** * * @see \FML\Types\Container::removeChildren() * @return \FML\Controls\Frame */ public function removeChildren() { $this->children = array(); return $this; } /** * * @see \FML\Renderable::render() */ public function render(\DOMDocument $domDocument) { $xml = parent::render($domDocument); foreach ($this->children as $child) { $childXml = $child->render($domDocument); $xml->appendChild($childXml); } return $xml; } }