query() public method

public query ( $xri, $service_types, $filters = [] )
示例#1
0
function Auth_OpenID_discoverXRI($iname, $fetcher)
{
    $resolver = new Auth_Yadis_ProxyResolver($fetcher);
    list($canonicalID, $yadis_services) = $resolver->query($iname, Auth_OpenID_getOpenIDTypeURIs(), array('filter_MatchesAnyOpenIDType'));
    $openid_services = Auth_OpenID_makeOpenIDEndpoints($iname, $yadis_services);
    $openid_services = Auth_OpenID_getOPOrUserServices($openid_services);
    for ($i = 0; $i < count($openid_services); $i++) {
        $openid_services[$i]->canonicalID = $canonicalID;
        $openid_services[$i]->claimed_id = $canonicalID;
        $openid_services[$i]->display_identifier = $iname;
    }
    // FIXME: returned xri should probably be in some normal form
    return array($iname, $openid_services);
}