public function filter($node)
    {
        $ret = array();
        $items = array($node);
        foreach ($this->_factors as $factor) {
            $ret = $this->_getNodesByFactor($items, $factor);
            $items = $ret;
        }
        return $ret;
    }
public function filter($node)
    {
        $ret = array();
        $items = array($node);
        foreach ($this->_factors as $factor) {
            $ret = $this->_getNodesByFactor($items, $factor);
            $items = $ret;
        }
        return $ret;
    }
public function filter ( $ node ) { $ ret = array ( ) ; $ items = array ( $ node ) ; foreach ( $ this -> _factors as $ factor ) { $ ret = $ this -> _getNodesByFactor ( $ items , $ factor ) ; $ items = $ ret ; } return $ ret ; }
Gets all filtered subnodes of a given node.

This function filters all subnodes of a given node that satisfy all factors.
A term is actually a list of factors, and a factor can be added by the
'addFactor' function.

@param DOMNode $node DOMNode object

@return array of DOMElement objects
Gets all filtered subnodes of a given node .