TYPO3 API  SVNRelease
Public Member Functions
Auth_Yadis_Yadis Class Reference

List of all members.

Public Member Functions

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

Detailed Description

Definition at line 242 of file Yadis.php.


Member Function Documentation

Auth_Yadis_Yadis::_getContentType ( content_type_header)

private

Definition at line 288 of file Yadis.php.

Referenced by discover().

Auth_Yadis_Yadis::_getHeader ( header_list,
names 
)

private

Definition at line 272 of file Yadis.php.

References $value.

Referenced by discover().

Auth_Yadis_Yadis::curlPresent ( )

Definition at line 264 of file Yadis.php.

Referenced by getHTTPFetcher().

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

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 _getContentType(), _getHeader(), and getHTTPFetcher().

Auth_Yadis_Yadis::getHTTPFetcher ( timeout = 20)

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(), and discover().


The documentation for this class was generated from the following file: