Support Joomla!

Joomla! 1.5 Documentation

Packages

Package: Yadis

Developer Network License

The Joomla! Developer Network content is © copyright 2006 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution- NonCommercial- ShareAlike 2.5

 Class Services_Yadis_Service

Description

This class represents a <Service> element in an XRDS document.

Objects of this type are returned by Services_Yadis_XRDS::services() and Services_Yadis_Yadis::services(). Each object corresponds directly to a <Service> element in the XRDS and supplies a getElements($name) method which you should use to inspect the element's contents. See Services_Yadis_Yadis for more information on the role this class plays in Yadis discovery.

Located in /openid/Services/Yadis/XRDS.php (line 67)

Class Services_Yadis_Service
Method Summary
Constructor Services_Yadis_Service Services_Yadis_Service ()
Method array getElements (string $name)
Method mixed getPriority ()
Method array getTypes ()
Method array getURIs ()
Methods
Constructor Services_Yadis_Service (line 72)

Creates an empty service object.

Services_Yadis_Service Services_Yadis_Service ()
getElements (line 172)

Used to get XML elements from this object's <Service> 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 <Service> element for this object.

  • return: An array of elements with the specified name which are direct children of the <Service> element. The nodes returned by this function can be passed to $this->parser methods (see Services_Yadis_XMLParser).
array getElements (string $name)
  • string $name: The name of the element to look for
getPriority (line 146)

Returns the "priority" attribute value of this <Service> element, if the attribute is present. Returns null if not.

  • return: Null or integer, depending on whether this Service element has a 'priority' attribute.
mixed getPriority ()
getTypes (line 84)

Return the URIs in the "Type" elements, if any, of this Service element.

  • return: An array of Type URI strings.
array getTypes ()
getURIs (line 102)

Return the URIs in the "URI" elements, if any, of this Service element. The URIs are returned sorted in priority order.

  • return: An array of URI strings.
array getURIs ()

Documentation generated on Mon, 05 Mar 2007 21:33:05 +0000 by phpDocumentor 1.3.1