Methods summary
public
boolean
|
#
add( mixed $key, mixed $item )
Inserts the specified element to the map.
Inserts the specified element to the map.
Parameters
Returns
boolean
Throws
InvalidArgumentException, InvalidStateException
Implementation of
|
public
|
#
append( mixed $item )
Append is not supported.
Parameters
Throws
|
public
|
#
getKeys( )
Returns a array of the keys contained in this map. return array
Returns a array of the keys contained in this map. return array
Implementation of
|
public
mixed
|
#
search( mixed $item )
Returns the key of the first occurrence of the specified element,. or FALSE
if this map does not contain this element.
Returns the key of the first occurrence of the specified element,. or FALSE
if this map does not contain this element.
Parameters
Returns
mixed
|
public
|
#
import( array|Traversable $arr )
Import from array or any traversable object.
Import from array or any traversable object.
Parameters
Throws
|
public
mixed
|
#
get( string $key, mixed $default = NULL )
Returns variable or $default if there is no element.
Returns variable or $default if there is no element.
Parameters
- $key
string key
- $default
mixed default value
Returns
mixed
Throws
|
public
|
#
throwKeyNotFound( $val = TRUE )
Do throw KeyNotFoundException?
Do throw KeyNotFoundException?
|
public
|
#
offsetSet( string $key, object $item )
Inserts (replaces) item (ArrayAccess implementation).
Inserts (replaces) item (ArrayAccess implementation).
Parameters
- $key
string key
- $item
object
Throws
NotSupportedException, InvalidArgumentException
Implementation of
|
public
mixed
|
#
offsetGet( string $key )
Returns item (ArrayAccess implementation).
Returns item (ArrayAccess implementation).
Parameters
Returns
mixed
Throws
NKeyNotFoundException, InvalidArgumentException
Implementation of
|
public
boolean
|
#
offsetExists( string $key )
Exists item? (ArrayAccess implementation).
Exists item? (ArrayAccess implementation).
Parameters
Returns
boolean
Throws
Implementation of
|
public
|
#
offsetUnset( string $key )
Removes the element at the specified position in this list.
Removes the element at the specified position in this list.
Parameters
Throws
NotSupportedException, InvalidArgumentException
Implementation of
|