Class Auth_Yadis_Service
This class represents a element in an XRDS document.
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 Auth_Yadis_Yadis
for more
information on the role this class plays in Yadis discovery.
Methods summary
public
|
|
public
array
|
#
getTypes( )
Return the URIs in the "Type" elements, if any, of this Service
element.
Return the URIs in the "Type" elements, if any, of this Service
element.
Returns
array $type_uris An array of Type URI strings.
|
public
|
|
public
array
|
#
getURIs( )
Return the URIs in the "URI" elements, if any, of this Service
element. The URIs are returned sorted in priority order.
Return the URIs in the "URI" elements, if any, of this Service
element. The URIs are returned sorted in priority order.
Returns
array $uris An array of URI strings.
|
public
mixed
|
#
getPriority( )
Returns the "priority" attribute value of this
element, if the attribute is present. Returns null if not.
Returns the "priority" attribute value of this
element, if the attribute is present. Returns null if not.
Returns
mixed $result Null or integer, depending on whether
this Service element has a 'priority' attribute.
|
public
array
|
#
getElements( string $name )
Used to get XML elements from this object's element.
Used to get XML elements from this object's element.
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.
Parameters
- $name
- The name of the element to look for
Returns
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 Auth_Yadis_XMLParser ).
|