pQuery\DomNode::isParent PHP Метод

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

Find out if node is parent of a certain tag
См. также: 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
Результат boolean
    function isParent($tag, $recursive = false)
    {
        return $this->hasParent($tag, $recursive) === ($tag !== null);
    }
DomNode