Auth_Yadis_domxml::evalXPath PHP Метод

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

public evalXPath ( $xpath, $node = null )
    function &evalXPath($xpath, $node = null)
    {
        if ($node) {
            $result = @$this->xpath->xpath_eval($xpath, $node);
        } else {
            $result = @$this->xpath->xpath_eval($xpath);
        }
        if (!$result) {
            $n = array();
            return $n;
        }
        if (!$result->nodeset) {
            $n = array();
            return $n;
        }
        return $result->nodeset;
    }