function getURIs()
    {
        $uris = array();
        $last = array();

        foreach ($this->getElements('xrd:URI') as $elem) {
            $uri_string = $this->parser->content($elem);
            $attrs = $this->parser->attributes($elem);
            if ($attrs &&
                array_key_exists('priority', $attrs)) {
                $priority = intval($attrs['priority']);
                if (!array_key_exists($priority, $uris)) {
                    $uris[$priority] = array();
                }

                $uris[$priority][] = $uri_string;
            } else {
                $last[] = $uri_string;
            }
        }

        $keys = array_keys($uris);
        sort($keys);

        // Rebuild array of URIs.
        $result = array();
        foreach ($keys as $k) {
            $new_uris = Auth_Yadis_array_scramble($uris[$k]);
            $result = array_merge($result, $new_uris);
        }

        $result = array_merge($result,
                              Auth_Yadis_array_scramble($last));

        return $result;
    }
function getURIs()
    {
        $uris = array();
        $last = array();

        foreach ($this->getElements('xrd:URI') as $elem) {
            $uri_string = $this->parser->content($elem);
            $attrs = $this->parser->attributes($elem);
            if ($attrs &&
                array_key_exists('priority', $attrs)) {
                $priority = intval($attrs['priority']);
                if (!array_key_exists($priority, $uris)) {
                    $uris[$priority] = array();
                }

                $uris[$priority][] = $uri_string;
            } else {
                $last[] = $uri_string;
            }
        }

        $keys = array_keys($uris);
        sort($keys);

        // Rebuild array of URIs.
        $result = array();
        foreach ($keys as $k) {
            $new_uris = Auth_Yadis_array_scramble($uris[$k]);
            $result = array_merge($result, $new_uris);
        }

        $result = array_merge($result,
                              Auth_Yadis_array_scramble($last));

        return $result;
    }
function getURIs ( ) { $ uris = array ( ) ; $ last = array ( ) ; foreach ( $ this -> getElements ( 'xrd:URI' ) as $ elem ) { $ uri_string = $ this -> parser -> content ( $ elem ) ; $ attrs = $ this -> parser -> attributes ( $ elem ) ; if ( $ attrs && array_key_exists ( 'priority' , $ attrs ) ) { $ priority = intval ( $ attrs [ 'priority' ] ) ; if ( ! array_key_exists ( $ priority , $ uris ) ) { $ uris [ $ priority ] = array ( ) ; } $ uris [ $ priority ] [ ] = $ uri_string ; } else { $ last [ ] = $ uri_string ; } } $ keys = array_keys ( $ uris ) ; sort ( $ keys ) ; // Rebuild array of URIs. $ result = array ( ) ; foreach ( $ keys as $ k ) { $ new_uris = Auth_Yadis_array_scramble ( $ uris [ $ k ] ) ; $ result = array_merge ( $ result , $ new_uris ) ; } $ result = array_merge ( $ result , Auth_Yadis_array_scramble ( $ last ) ) ; return $ result ; }
Return the URIs in the "URI" elements, if any, of this Service
element.  The URIs are returned sorted in priority order.

@return array $uris An array of URI strings.
Return the URIs in the URI elements if any of this Service element . The URIs are returned sorted in priority order .