This should be called statically and will build a Yadis
instance if the discovery process succeeds. This implements
Yadis discovery as specified in the Yadis specification.
static public discover ( string $uri, Auth_Yadis_HTTPFetcher $fetcher, array $extra_ns_map = null, integer $timeout = 20 ) : mixed | ||
$uri | string | The URI on which to perform Yadis discovery. |
$fetcher | Auth_Yadis_HTTPFetcher | An instance of a Auth_Yadis_HTTPFetcher subclass. |
$extra_ns_map | array | An array which maps namespace names to namespace URIs to be used when parsing the Yadis XRDS document. |
$timeout | integer | An optional fetcher timeout, in seconds. |
return | mixed | $obj Either null or an instance of Auth_Yadis_Yadis, depending on whether the discovery succeeded. |