Definition at line 540 of file AX.php.
Public Member Functions | |
Auth_OpenID_AX_KeyValueMessage () | |
addValue ($type_uri, $value) | |
setValues ($type_uri, &$values) | |
_getExtensionKVArgs (&$aliases) | |
parseExtensionArgs ($ax_args) | |
getSingle ($type_uri, $default=null) | |
get ($type_uri) | |
count ($type_uri) |
Auth_OpenID_AX_KeyValueMessage.Auth_OpenID_AX_KeyValueMessage | ( | ) |
Auth_OpenID_AX_KeyValueMessage.addValue | ( | $ | type_uri, | |
$ | value | |||
) |
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.
type_uri,: | The URI for the attribute | |
value,: | The value to add to the response to the relying party for this attribute |
Auth_OpenID_AX_KeyValueMessage.setValues | ( | $ | type_uri, | |
&$ | values | |||
) |
Auth_OpenID_AX_KeyValueMessage._getExtensionKVArgs | ( | &$ | aliases | ) |
Auth_OpenID_AX_KeyValueMessage.parseExtensionArgs | ( | $ | ax_args | ) |
Parse attribute exchange key/value arguments into this object.
ax_args,: | The attribute exchange fetch_response arguments, with namespacing removed. |
Reimplemented in Auth_OpenID_AX_FetchResponse.
Auth_OpenID_AX_KeyValueMessage.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.
type_uri,: | The URI for the attribute | |
default,: | The value to return if the attribute was not sent in the fetch_response. |
Auth_OpenID_AX_KeyValueMessage.get | ( | $ | type_uri | ) |
Get the list of values for this attribute in the fetch_response.
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 []?
type_uri,: | The URI of the attribute |
Auth_OpenID_AX_KeyValueMessage.count | ( | $ | type_uri | ) |
Get the number of responses for a particular attribute in this fetch_response message.
type_uri,: | The URI of the attribute |