PHP Класс Auth_OpenID_Mapping

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

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

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

Описание методов

__construct() публичный Метод

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 _reflow ( )

contains() публичный Метод

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

del() публичный Метод

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

get() публичный Метод

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() статический публичный Метод

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

items() публичный Метод

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

keys() публичный Метод

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

len() публичный Метод

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

set() публичный Метод

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() публичный Метод

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