Example #1
0
 function parse_text()
 {
     parent::parse_text();
     if ($this->status['text'] !== '' && $this->hierarchy) {
         $current =& $this->hierarchy[count($this->hierarchy) - 1];
         if (!$current['children']) {
             $current['tagData'] = $this->status['text'];
         }
     }
 }
Example #2
0
 function parse_text()
 {
     parent::parse_text();
     if ($this->status['text'] !== '') {
         //end($this->hierarchy)->addText($this->status['text']);
         $index = null;
         //Needs to be passed by ref
         $this->hierarchy[count($this->hierarchy) - 1]->addText($this->status['text'], $index);
     }
 }