Example #1
0
 function parse_script()
 {
     if (!parent::parse_script()) {
         return false;
     }
     //$e = end($this->hierarchy)->addChild($this->status);
     $index = null;
     //Needs to be passed by ref
     $e = $this->hierarchy[count($this->hierarchy) - 1]->addChild($this->status, $index);
     if ($this->status['text'] !== '') {
         $index = null;
         //Needs to be passed by ref
         $e->addText($this->status['text'], $index);
     }
     return true;
 }