ILIAS
Release_4_4_x_branch Revision 61816
|
Public Member Functions | |
Auth_Yadis_XRDS ($xmlParser, $xrdNodes) | |
Instantiate a Auth_Yadis_XRDS object. | |
_addService ($priority, $service) | |
private | |
_parse () | |
Creates the service list using nodes from the XRDS XML document. | |
services ($filters=null, $filter_mode=SERVICES_YADIS_MATCH_ANY) | |
Returns a list of service objects which correspond to <Service> elements in the XRDS XML document for this object. |
Static Public Member Functions | |
static | parseXRDS ($xml_string, $extra_ns_map=null) |
Parse an XML string (XRDS document) and return either a Auth_Yadis_XRDS object or null, depending on whether the XRDS XML is valid. |
Auth_Yadis_XRDS::_addService | ( | $priority, | |
$service | |||
) |
Auth_Yadis_XRDS::_parse | ( | ) |
Creates the service list using nodes from the XRDS XML document.
private
Definition at line 348 of file XRDS.php.
References _addService(), and SERVICES_YADIS_MAX_PRIORITY.
Referenced by Auth_Yadis_XRDS().
Auth_Yadis_XRDS::Auth_Yadis_XRDS | ( | $xmlParser, | |
$xrdNodes | |||
) |
Instantiate a Auth_Yadis_XRDS object.
Requires an XPath instance which has been used to parse a valid XRDS document.
Definition at line 258 of file XRDS.php.
References _parse().
Referenced by parseXRDS().
|
static |
Parse an XML string (XRDS document) and return either a Auth_Yadis_XRDS object or null, depending on whether the XRDS XML is valid.
string | $xml_string | An XRDS XML string. |
Definition at line 276 of file XRDS.php.
References Auth_Yadis_getNSMap(), Auth_Yadis_getXMLParser(), Auth_Yadis_XMLNS_XRD_2_0, Auth_Yadis_XMLNS_XRDS, and Auth_Yadis_XRDS().
Referenced by Auth_OpenID_ServiceEndpoint\consumerFromXRDS(), Auth_OpenID_ServiceEndpoint\fromXRDS(), and Auth_Yadis_ProxyResolver\query().
Auth_Yadis_XRDS::services | ( | $filters = null , |
|
$filter_mode = SERVICES_YADIS_MATCH_ANY |
|||
) |
Returns a list of service objects which correspond to <Service> elements in the XRDS XML document for this object.
Optionally, an array of filter callbacks may be given to limit the list of returned service objects. Furthermore, the default mode is to return all service objects which match ANY of the specified filters, but $filter_mode may be SERVICES_YADIS_MATCH_ALL if you want to be sure that the returned services match all the given filters. See Auth_Yadis_Yadis for detailed usage information on filter functions.
mixed | $filters | An array of callbacks to filter the returned services, or null if all services are to be returned. |
integer | $filter_mode | SERVICES_YADIS_MATCH_ALL or SERVICES_YADIS_MATCH_ANY, depending on whether the returned services should match ALL or ANY of the specified filters, respectively. |
Definition at line 393 of file XRDS.php.
References $result, SERVICES_YADIS_MATCH_ALL, SERVICES_YADIS_MATCH_ANY, and SERVICES_YADIS_MAX_PRIORITY.