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);
        }
    }
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);
        }
    }
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 ) ; } }
Create endpoints from a DiscoveryResult.

@param Auth_Yadis_DiscoveryResult $discoveryResult
@return Auth_OpenID_ServiceEndpoint[]|null null if
endpoints cannot be created.
Create endpoints from a DiscoveryResult .