PHP 클래스 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.
파일 보기 프로젝트 열기: openid/php-openid 1 사용 예제들

공개 메소드들

메소드 설명
__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 )

메소드 상세

__construct() 공개 메소드

Creates an empty service object.
public __construct ( )

getElements() 공개 메소드

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
리턴 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() 공개 메소드

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

getTypes() 공개 메소드

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

getURIs() 공개 메소드

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

matchTypes() 공개 메소드

public matchTypes ( $type_uris )