PHP 클래스 Auth_OpenID_Mapping

파일 보기 프로젝트 열기: openid/php-openid 1 사용 예제들

공개 메소드들

메소드 설명
__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 ( )