Class: Services_Yadis_Xrds

The Services_Yadis_Xrds class is a wrapper for elements of an XRD document which is parsed using SimpleXML, and contains methods for retrieving data about the document. The concrete aspects of retrieving specific data elements is left to a concrete subclass.

Child classes:

The Services_Yadis_Xrds_Service class is a wrapper for Service elements of an XRD document which is parsed using SimpleXML, and contains methods for retrieving data about each Service, including Type, Url and other arbitrary data added in a separate namespace, e.g. openid:Delegate for OpenID 1.1.

Inherited Variables

Inherited Methods

Class Details

[line 59]
The Services_Yadis_Xrds class is a wrapper for elements of an XRD document which is parsed using SimpleXML, and contains methods for retrieving data about the document. The concrete aspects of retrieving specific data elements is left to a concrete subclass.

Parameters:

Order an array of elements by priority. This assumes an array form of:

$array[$priority] = <array of elements with equal priority> Where multiple elements are assigned to a priority, their order in the priority array should be made random. After ordering, the array is flattened to a single array of elements for iteration.