protected 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']; } } }
protected function parse_text() { parent::parse_text(); if ($this->status['text'] !== '') { $index = null; //Needs to be passed by ref $this->hierarchy[count($this->hierarchy) - 1]->addText($this->status['text'], $index); } }
function parse_text() { parent::parse_text(); if ($this->status['text'] !== '') { $index = null; $this->hierarchy[count($this->hierarchy) - 1]->addText($this->status['text'], $index); } }