Class Auth_OpenID_Mapping
An Auth_OpenID_Mapping maintains a mapping from arbitrary keys to
arbitrary values. (This is unlike an ordinary PHP array, whose
keys may be only simple scalars.)
Methods summary
public
|
#
Auth_OpenID_Mapping( $classic_array = null )
Initialize a mapping. If $classic_array is specified, its keys
and values are used to populate the mapping.
Initialize a mapping. If $classic_array is specified, its keys
and values are used to populate the mapping.
|
public static
|
#
isA( $thing )
Returns true if $thing is an Auth_OpenID_Mapping object; false
if not.
Returns true if $thing is an Auth_OpenID_Mapping object; false
if not.
|
public
|
#
keys( )
Returns an array of the keys in the mapping.
Returns an array of the keys in the mapping.
|
public
|
#
values( )
Returns an array of values in the mapping.
Returns an array of values in the mapping.
|
public
|
#
items( )
Returns an array of (key, value) pairs in the mapping.
Returns an array of (key, value) pairs in the mapping.
|
public
|
#
len( )
Returns the "length" of the mapping, or the number of keys.
Returns the "length" of the mapping, or the number of keys.
|
public
|
#
set( $key, $value )
Sets a key-value pair in the mapping. If the key already
exists, its value is replaced with the new value.
Sets a key-value pair in the mapping. If the key already
exists, its value is replaced with the new value.
|
public
|
#
get( $key, $default = null )
Gets a specified value from the mapping, associated with the
specified key. If the key does not exist in the mapping,
$default is returned instead.
Gets a specified value from the mapping, associated with the
specified key. If the key does not exist in the mapping,
$default is returned instead.
|
public
|
|
public
|
#
del( $key )
Deletes a key-value pair from the mapping with the specified
key.
Deletes a key-value pair from the mapping with the specified
key.
|
public
|
#
contains( $value )
Returns true if the specified value has a key in the mapping;
false if not.
Returns true if the specified value has a key in the mapping;
false if not.
|