Auth_Yadis_dom::attributes PHP Метод

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

public attributes ( $node )
    function attributes($node)
    {
        if ($node) {
            $arr = $node->attributes;
            $result = array();
            if ($arr) {
                for ($i = 0; $i < $arr->length; $i++) {
                    $node = $arr->item($i);
                    $result[$node->nodeName] = $node->nodeValue;
                }
            }
            return $result;
        }
    }