コード例 #1
0
ファイル: Document.php プロジェクト: joksnet/php-old
 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);
 }
コード例 #2
0
ファイル: Sidebar.php プロジェクト: joksnet/php-old
 /**
  * @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);
 }
コード例 #3
0
ファイル: Form.php プロジェクト: joksnet/php-old
 /**
  * @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;
 }
コード例 #4
0
ファイル: Standard8.php プロジェクト: joksnet/php-old
 public function __toString()
 {
     $this->_container->appendChild($this->_bottom);
     return parent::__toString();
 }