pQuery\HtmlParser::parse_style PHP Method

parse_style() public method

public parse_style ( )
    function parse_style()
    {
        if (!parent::parse_style()) {
            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;
    }