Auth_Yadis_XRDS::_parse PHP Method

_parse() public method

Creates the service list using nodes from the XRDS XML document.
public _parse ( )
    function _parse()
    {
        $this->serviceList = array();
        $services = $this->parser->evalXPath('xrd:Service', $this->xrdNode);
        foreach ($services as $node) {
            $s = new Auth_Yadis_Service();
            $s->element = $node;
            $s->parser = $this->parser;
            $priority = $s->getPriority();
            if ($priority === null) {
                $priority = SERVICES_YADIS_MAX_PRIORITY;
            }
            $this->_addService($priority, $s);
        }
    }