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