PHP 클래스 Auth_OpenID_AX_KeyValueMessage

상속: extends Auth_OpenID_AX_Message
파일 보기 프로젝트 열기: openid/php-openid 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( )
_getExtensionKVArgs ( $aliases ) Get the extension arguments for the key/value pairs contained in this message.
addValue ( $type_uri, $value ) : null Add a single value for the given attribute type to the message. If there are already values specified for this type, this value will be sent in addition to the values already specified.
count ( $type_uri ) Get the number of responses for a particular attribute in this fetch_response message.
get ( $type_uri ) Get the list of values for this attribute in the fetch_response.
getSingle ( $type_uri, $default = null ) Get a single value for an attribute. If no value was sent for this attribute, use the supplied default. If there is more than one value for this attribute, this method will fail.
parseExtensionArgs ( $ax_args ) : Auth_OpenID_AX_Error Parse attribute exchange key/value arguments into this object.
setValues ( $type_uri, &$values ) Set the values for the given attribute type. This replaces any values that have already been set for this attribute.

메소드 상세

__construct() 공개 메소드

public __construct ( )

_getExtensionKVArgs() 공개 메소드

Get the extension arguments for the key/value pairs contained in this message.
public _getExtensionKVArgs ( $aliases )

addValue() 공개 메소드

Add a single value for the given attribute type to the message. If there are already values specified for this type, this value will be sent in addition to the values already specified.
public addValue ( $type_uri, $value ) : null
리턴 null

count() 공개 메소드

Get the number of responses for a particular attribute in this fetch_response message.
public count ( $type_uri )

get() 공개 메소드

XXX: what to do if the values are not present? default parameter? this is funny because it's always supposed to return a list, so the default may break that, though it's provided by the user's code, so it might be okay. If no default is supplied, should the return be None or []?
public get ( $type_uri )

getSingle() 공개 메소드

Get a single value for an attribute. If no value was sent for this attribute, use the supplied default. If there is more than one value for this attribute, this method will fail.
public getSingle ( $type_uri, $default = null )

parseExtensionArgs() 공개 메소드

Parse attribute exchange key/value arguments into this object.
public parseExtensionArgs ( $ax_args ) : Auth_OpenID_AX_Error
리턴 Auth_OpenID_AX_Error or true

setValues() 공개 메소드

Set the values for the given attribute type. This replaces any values that have already been set for this attribute.
public setValues ( $type_uri, &$values )