Example #1
0
 public function setParent(&$parent)
 {
     parent::setParent($parent);
     $step = $this->level;
     if (isset($parent->parent) && $parent->parent instanceof parent) {
         $step -= $parent->parent->level;
     }
 }
Example #2
0
 public function __construct($out)
 {
     parent::__construct('dl', 'dt', ':', $out[0]);
     $element = new ListElement($this->level, 'dd');
     $this->last = Element::insert($element);
     if (!empty($out[1])) {
         $this->last = $this->last->insert(ElementFactory::factory('InlineElement', null, $out[1]));
     }
 }
Example #3
0
 public function __construct(&$root, $text)
 {
     parent::__construct('ul', 'li', '-', $text);
 }