PHP Class Auth_OpenID_Mapping

Mostra file Open project: openid/php-openid Class Usage Examples

Public Methods

Method Description
__construct ( $classic_array = null ) Initialize a mapping. If $classic_array is specified, its keys and values are used to populate the mapping.
_reflow ( )
contains ( $value ) Returns true if the specified value has a key in the mapping; false if not.
del ( $key ) Deletes a key-value pair from the mapping with the specified key.
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.
isA ( $thing ) Returns true if $thing is an Auth_OpenID_Mapping object; false if not.
items ( ) Returns an array of (key, value) pairs in the mapping.
keys ( ) Returns an array of the keys in the mapping.
len ( ) Returns the "length" of the mapping, or the number of keys.
set ( $key, $value ) Sets a key-value pair in the mapping. If the key already exists, its value is replaced with the new value.
values ( ) Returns an array of values in the mapping.

Method Details

__construct() public method

Initialize a mapping. If $classic_array is specified, its keys and values are used to populate the mapping.
public __construct ( $classic_array = null )

_reflow() public method

public _reflow ( )

contains() public method

Returns true if the specified value has a key in the mapping; false if not.
public contains ( $value )

del() public method

Deletes a key-value pair from the mapping with the specified key.
public del ( $key )

get() public method

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 get ( $key, $default = null )

isA() static public method

Returns true if $thing is an Auth_OpenID_Mapping object; false if not.
static public isA ( $thing )

items() public method

Returns an array of (key, value) pairs in the mapping.
public items ( )

keys() public method

Returns an array of the keys in the mapping.
public keys ( )

len() public method

Returns the "length" of the mapping, or the number of keys.
public len ( )

set() public method

Sets a key-value pair in the mapping. If the key already exists, its value is replaced with the new value.
public set ( $key, $value )

values() public method

Returns an array of values in the mapping.
public values ( )