Objects of this type are returned by Auth_Yadis_XRDS::services() and Auth_Yadis_Yadis::services(). Each object corresponds directly to a element in the XRDS and supplies a getElements($name) method which you should use to inspect the element's contents. See {@link Auth_Yadis_Yadis} for more information on the role this class plays in Yadis discovery.
示例#1
0
 /**
  * Creates the service list using nodes from the XRDS XML
  * document.
  *
  * @access private
  */
 function _parse()
 {
     $this->serviceList = array();
     $services = $this->parser->evalXPath('xrd:Service', $this->xrdNode);
     /*
      * Keyboard Monkeys modification:
      * Assigning the return value of new by reference is deprecated
      */
     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);
     }
 }
示例#2
0
 /**
  * Creates the service list using nodes from the XRDS XML
  * document.
  *
  * @access private
  */
 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);
     }
 }