pQuery\HtmlParser::parse_script PHP Метод

parse_script() публичный Метод

public parse_script ( )
    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;
    }