示例#1
0
文件: table.php 项目: poef/ariadne
 public function __construct($data = null, $attributes = null, $childNodes = null, $parentNode = null)
 {
     parent::__construct('table', $attributes, $childNodes, $parentNode);
     if (isset($data)) {
         $this->body($data);
     }
 }
示例#2
0
文件: css.php 项目: poef/ariadne
 public function __construct($tagName = 'style', $attributes = array(), $childNodes = null, $parentNode = null)
 {
     $this->rules = new ar_cssRules($this);
     if (!$attributes) {
         $attributes = array();
     }
     if (!$attributes['type']) {
         $attributes['type'] = 'text/css';
     }
     parent::__construct($tagName, $attributes, null, $parentNode);
 }
示例#3
0
文件: menu.php 项目: poef/ariadne
 public function toString($indent = '', $current = 0)
 {
     if (!$this->filled) {
         // do a default menu.
         $this->bar();
     }
     if ($this->stripeOptions) {
         $this->stripe($this->stripeOptions);
     }
     if ($this->levelOptions) {
         $this->levels($this->levelOptions);
     }
     if ($this->autoIDOptions) {
         $this->autoID($this->autoIDOptions);
     }
     return parent::toString($indent, $current);
 }