public static function __init() { self::$docType = Wax_Factory::createObject('Wax_Document_DocType'); self::$documentElement = self::createElement('html')->setAttribute('xmlns', 'http://www.w3.org/1999/xhtml'); self::$head = Wax_Factory::createObject('Wax_Document_Head'); self::$body = Wax_Factory::createObject('Wax_Document_Body'); self::$documentElement->appendChild(self::$head); self::$documentElement->appendChild(self::$body); }
/** * @return Standard8_Sidebar */ public function appendLine($label = null) { $li = Wax_Document::createElement('li')->setClassName('line'); if (!empty($label)) { $li->appendChild(Wax_Document::createElement('span')->innerHTML($label)); } else { $li->appendChild(Wax_Document::createComment('')); } $this->_pagesnav->appendChild($li); }
/** * @return Wax_Document_Body_Form */ public function appendHidden($name, $value = null, $extras = null) { if (strlen($name) == 0) { throw new Wax_Document_Body_Form_Exception("Hidden name must be a non-empty string"); } $this->_hiddens->appendChild(Wax_Factory::createObject('Wax_Document_Body_Form_Element_Input_Hidden', $name, $value)->setAttributes($extras)); return $this; }
public function __toString() { $this->_container->appendChild($this->_bottom); return parent::__toString(); }