PHP Класс Auth_OpenID_AX_KeyValueMessage

Наследование: extends Auth_OpenID_AX_Message
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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 )