pQuery\DomNode::isParent PHP Method

isParent() public method

Find out if node is parent of a certain tag
See also: hasParent()
public isParent ( DomNode | string $tag, boolean $recursive = false ) : boolean
$tag DomNode | string Match against parent, string to match tag, object to fully match node
$recursive boolean
return boolean
    function isParent($tag, $recursive = false)
    {
        return $this->hasParent($tag, $recursive) === ($tag !== null);
    }
DomNode