trait CaseInsensitiveKeyMapTrait (View source)

Case-insensitive key value map.

Item access works case-insensitively but key case is preserved internally.

Implements ArrayAccess, ContainerInterface, Countable, IteratorAggregator, ArrayRepresentation

Methods

__construct(array $array = array())

No description

count()

No description

getIterator()

No description

array
getArrayCopy()

No description

offsetExists($name)

No description

offsetGet($name)

No description

offsetSet($name, $value)

No description

offsetUnset($name)

No description

exchangeArray($array)

No description

initializeCaseInsensitiveKeyMapTrait(ArrayObject|array $array = array(), NULL|boolean $copy = null)

No description

caselessOffsetExists($name)

No description

caselessOffsetGet($name)

No description

caselessOffsetSet($name, $value)

No description

caselessOffsetUnset($name)

No description

Details

__construct(array $array = array())

Parameters

array $array

count()

getIterator()

array getArrayCopy()

Return Value

array

offsetExists($name)

Parameters

$name

offsetGet($name)

Parameters

$name

offsetSet($name, $value)

Parameters

$name
$value

offsetUnset($name)

Parameters

$name

exchangeArray($array)

Parameters

$array

protected initializeCaseInsensitiveKeyMapTrait(ArrayObject|array $array = array(), NULL|boolean $copy = null)

Parameters

ArrayObject|array $array Input array. If $array is a \ArrayObject nad $copy is not true. The internal map will use $array as a reference.
NULL|boolean $copy If TRUE, copy input array anyway. If NULL, set to FALSE if $array is ArrayObject, FALSE otherwise. If FALSE and if input array is a ArrayObject, use $array as referecne

protected caselessOffsetExists($name)

Parameters

$name

protected caselessOffsetGet($name)

Parameters

$name

protected caselessOffsetSet($name, $value)

Parameters

$name
$value

protected caselessOffsetUnset($name)

Parameters

$name