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])); } }
public function __construct(&$root, $text) { parent::__construct('ul', 'li', '-', $text); }
public function __construct($text, $level, $id) { $_text = str_repeat('-', $level) . '[[' . self::stripBracket($text) . '>#' . $id . ']]'; parent::__construct('ul', 'li', '-', $_text); }