Auth/Yadis/Yadis.php-Dateireferenz

gehe zum Quellcode dieser Datei

Datenstrukturen

class  Auth_Yadis_DiscoveryResult
class  Auth_Yadis_Yadis

Namensbereiche

namespace  OpenID

Aufzählungen

enum  Auth_Yadis_CONTENT_TYPE
enum  Auth_Yadis_HEADER_NAME

Funktionen

 Auth_Yadis_getServiceEndpoints ($input_url, $xrds_parse_func, $discover_func=null, $fetcher=null)


Dokumentation der Aufzählungstypen

Need both fetcher types so we can use the right one based on the presence or absence of CURL. Need this for parsing HTML (looking for META tags). Need this to parse the XRDS document during Yadis discovery. XRDS (yadis) content type

Definiert in Zeile 36 der Datei Yadis.php.

Yadis header

Definiert in Zeile 41 der Datei Yadis.php.


Dokumentation der Funktionen

Auth_Yadis_getServiceEndpoints ( input_url,
xrds_parse_func,
discover_func = null,
fetcher = null 
)

Perform the Yadis protocol on the input URL and return an iterable of resulting endpoint objects.

input_url: The URL on which to perform the Yadis protocol

Rückgabe:
: The normalized identity URL and an iterable of endpoint objects generated by the filter function.
xrds_parse_func: a callback which will take (uri, xrds_text) and return an array of service endpoint objects or null. Usually array('Auth_OpenID_ServiceEndpoint', 'fromXRDS').

discover_func: if not null, a callback which should take (uri) and return an Auth_Yadis_Yadis object or null.

Definiert in Zeile 136 der Datei Yadis.php.

00138 {
00139     if ($discover_func === null) {
00140         $discover_function = array('Auth_Yadis_Yadis', 'discover');
00141     }
00142 
00143     $yadis_result = call_user_func_array($discover_func,
00144                                          array($input_url, $fetcher));
00145 
00146     if ($yadis_result === null) {
00147         return array($input_url, array());
00148     }
00149 
00150     $endpoints = call_user_func_array($xrds_parse_func,
00151                       array($yadis_result->normalized_uri,
00152                             $yadis_result->response_text));
00153 
00154     if ($endpoints === null) {
00155         $endpoints = array();
00156     }
00157 
00158     return array($yadis_result->normalized_uri, $endpoints);
00159 }

Copyright © 2003 - 2009 MyOOS [Shopsystem]. All rights reserved.
MyOOS [Shopsystem] is Free Software released under the GNU/GPL License.

Webmaster: info@r23.de (Impressum)
doxygen