PHP Class Auth_Yadis_Service

Objects of this type are returned by Auth_Yadis_XRDS::services() and Auth_Yadis_Yadis::services(). Each object corresponds directly to a element in the XRDS and supplies a getElements($name) method which you should use to inspect the element's contents. See {@link Auth_Yadis_Yadis} for more information on the role this class plays in Yadis discovery.
Afficher le fichier Open project: openid/php-openid Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( ) Creates an empty service object.
getElements ( string $name ) : array Used to get XML elements from this object's element.
getPriority ( ) : mixed Returns the "priority" attribute value of this element, if the attribute is present. Returns null if not.
getTypes ( ) : array Return the URIs in the "Type" elements, if any, of this Service element.
getURIs ( ) : array Return the URIs in the "URI" elements, if any, of this Service element. The URIs are returned sorted in priority order.
matchTypes ( $type_uris )

Method Details

__construct() public méthode

Creates an empty service object.
public __construct ( )

getElements() public méthode

This is what you should use to get all custom information out of this element. This is used by service filter functions to determine whether a service element contains specific tags, etc. NOTE: this only considers elements which are direct children of the element for this object.
public getElements ( string $name ) : array
$name string The name of the element to look for
Résultat array $list An array of elements with the specified name which are direct children of the element. The nodes returned by this function can be passed to $this->parser methods (see {@link Auth_Yadis_XMLParser}).

getPriority() public méthode

Returns the "priority" attribute value of this element, if the attribute is present. Returns null if not.
public getPriority ( ) : mixed
Résultat mixed $result Null or integer, depending on whether this Service element has a 'priority' attribute.

getTypes() public méthode

Return the URIs in the "Type" elements, if any, of this Service element.
public getTypes ( ) : array
Résultat array $type_uris An array of Type URI strings.

getURIs() public méthode

Return the URIs in the "URI" elements, if any, of this Service element. The URIs are returned sorted in priority order.
public getURIs ( ) : array
Résultat array $uris An array of URI strings.

matchTypes() public méthode

public matchTypes ( $type_uris )