fromXRDS() static public method

* Parse the given document as XRDS looking for OpenID services.
static public fromXRDS ( $uri, $xrds_text )
Example #1
0
 static function fromDiscoveryResult($discoveryResult)
 {
     if ($discoveryResult->isXRDS()) {
         return Auth_OpenID_ServiceEndpoint::fromXRDS($discoveryResult->normalized_uri, $discoveryResult->response_text);
     } else {
         return Auth_OpenID_ServiceEndpoint::fromHTML($discoveryResult->normalized_uri, $discoveryResult->response_text);
     }
 }