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

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

Deletes all child nodes from node
public clear ( )
    function clear()
    {
        foreach ($this->children as $c) {
            $c->parent = null;
            $c->delete();
        }
        $this->children = array();
    }
DomNode