JanRain OpenID Library

Yadis.php

The core PHP Yadis implementation.

PHP versions 4 and 5

LICENSE: See the COPYING file included in this distribution.

Tags
author

JanRain, Inc. openid@janrain.com

copyright

2005-2008 Janrain, Inc.

license

http://www.apache.org/licenses/LICENSE-2.0 Apache

Interfaces, Classes, Traits and Enums

Auth_Yadis_DiscoveryResult
Contains the result of performing Yadis discovery on a URI.
Auth_Yadis_Yadis
This is the core of the PHP Yadis library. This is the only class a user needs to use to perform Yadis discovery. This class performs the discovery AND stores the result of the discovery.

Table of Contents

Auth_Yadis_CONTENT_TYPE  = 'application/xrds+xml'
XRDS (yadis) content type
Auth_Yadis_HEADER_NAME  = 'X-XRDS-Location'
Yadis header
Auth_Yadis_getServiceEndpoints()  : string
Perform the Yadis protocol on the input URL and return an iterable of resulting endpoint objects.

Constants

Auth_Yadis_CONTENT_TYPE

XRDS (yadis) content type

public mixed Auth_Yadis_CONTENT_TYPE = 'application/xrds+xml'

Auth_Yadis_HEADER_NAME

Yadis header

public mixed Auth_Yadis_HEADER_NAME = 'X-XRDS-Location'

Functions

Auth_Yadis_getServiceEndpoints()

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

Auth_Yadis_getServiceEndpoints(string $input_url,  $xrds_parse_func[, null $discover_func = null ][, null $fetcher = null ]) : string

input_url: The URL on which to perform the Yadis protocol

Parameters
$input_url : string
$xrds_parse_func :
$discover_func : null = null
$fetcher : null = null
Return values
string

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.

Search results