pQuery\HtmlParser::__construct PHP Method

__construct() public method

Class constructor
public __construct ( string $doc = '', integer $pos, DomNode $root = null )
$doc string Document to be tokenized
$pos integer Position to start parsing
$root DomNode Root node, null to auto create
    function __construct($doc = '', $pos = 0, $root = null)
    {
        if ($root === null) {
            $root = new $this->root('~root~', null);
        }
        $this->root =& $root;
        parent::__construct($doc, $pos);
    }