Esempio n. 1
0
 public function __construct($data = null, $attributes = null, $childNodes = null, $parentNode = null)
 {
     parent::__construct('table', $attributes, $childNodes, $parentNode);
     if (isset($data)) {
         $this->body($data);
     }
 }
Esempio n. 2
0
File: css.php Progetto: 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);
 }
Esempio n. 3
0
 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);
 }