TYPO3 CMS  TYPO3_6-2
Auth_Yadis_Yadis Class Reference

Static Public Member Functions

static getHTTPFetcher ($timeout=20)
 
static curlPresent ()
 
static _getHeader ($header_list, $names)
 
static _getContentType ($content_type_header)
 
static discover ($uri, $fetcher, $extra_ns_map=null, $timeout=20)
 

Detailed Description

Definition at line 242 of file Yadis.php.

Member Function Documentation

◆ _getContentType()

static Auth_Yadis_Yadis::_getContentType (   $content_type_header)
static

private

Definition at line 288 of file Yadis.php.

Referenced by discover().

◆ _getHeader()

static Auth_Yadis_Yadis::_getHeader (   $header_list,
  $names 
)
static

private

Definition at line 272 of file Yadis.php.

Referenced by discover().

◆ curlPresent()

static Auth_Yadis_Yadis::curlPresent ( )
static

Definition at line 264 of file Yadis.php.

Referenced by getHTTPFetcher().

◆ discover()

static Auth_Yadis_Yadis::discover (   $uri,
  $fetcher,
  $extra_ns_map = null,
  $timeout = 20 
)
static

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.

Parameters
string$uriThe URI on which to perform Yadis discovery.
array$http_responseAn array reference where the HTTP response object will be stored (see Auth_Yadis_HTTPResponse.
Auth_Yadis_HTTPFetcher$fetcherAn instance of a Auth_Yadis_HTTPFetcher subclass.
array$extra_ns_mapAn array which maps namespace names to namespace URIs to be used when parsing the Yadis XRDS document.
integer$timeoutAn optional fetcher timeout, in seconds.
Returns
mixed $obj Either null or an instance of Auth_Yadis_Yadis, depending on whether the discovery succeeded.

Definition at line 320 of file Yadis.php.

References Auth_Yadis_DiscoveryResult\$request_uri, $result, _getContentType(), _getHeader(), Auth_Yadis_CONTENT_TYPE, Auth_Yadis_DiscoveryResult\Auth_Yadis_DiscoveryResult(), Auth_Yadis_HEADER_NAME, and getHTTPFetcher().

◆ getHTTPFetcher()

static Auth_Yadis_Yadis::getHTTPFetcher (   $timeout = 20)
static

Returns an HTTP fetcher object. If the CURL extension is present, an instance of Auth_Yadis_ParanoidHTTPFetcher is returned. If not, an instance of Auth_Yadis_PlainHTTPFetcher is returned.

If Auth_Yadis_CURL_OVERRIDE is defined, this method will always return a Auth_Yadis_PlainHTTPFetcher.

Definition at line 253 of file Yadis.php.

References curlPresent().

Referenced by Auth_OpenID_GenericConsumer\Auth_OpenID_GenericConsumer(), discover(), and Auth_OpenID_CheckIDRequest\returnToVerified().