[ Index ] |
PHP Cross Reference of phpBB-3.3.12-deutsch |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 277 lines (6 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
NormalizedCollection:: (17 methods):
asConfig()
onDuplicate()
getAlreadyExistsException()
getNotExistException()
normalizeKey()
normalizeValue()
add()
contains()
delete()
exists()
get()
indexOf()
set()
offsetExists()
offsetGet()
offsetSet()
offsetUnset()
Class: NormalizedCollection - X-Ref
asConfig() X-Ref |
{@inheritdoc} |
onDuplicate($action = null) X-Ref |
Query and set the action to take when add() is called with a key that already exists return: string Old action param: string|null $action If specified: either "error", "ignore" or "replace" |
getAlreadyExistsException($key) X-Ref |
Return the exception that is thrown when creating an item using a key that already exists return: RuntimeException param: string $key Item's key |
getNotExistException($key) X-Ref |
Return the exception that is thrown when accessing an item that does not exist return: RuntimeException param: string $key Item's key |
normalizeKey($key) X-Ref |
Normalize an item's key This method can be overridden to implement keys normalization or implement constraints return: string Normalized key param: string $key Original key |
normalizeValue($value) X-Ref |
Normalize a value for storage This method can be overridden to implement value normalization return: mixed Normalized value param: mixed $value Original value |
add($key, $value = null) X-Ref |
Add an item to this collection NOTE: relies on exists() to check the key for invalid values and on set() to normalize it return: mixed Normalized value param: string $key Item's key param: mixed $value Item's value |
contains($value) X-Ref |
Test whether a given value is present in this collection return: bool Whether the normalized value was found in this collection param: mixed $value Original value |
delete($key) X-Ref |
Delete an item from this collection return: void param: string $key Item's key |
exists($key) X-Ref |
Test whether an item of given key exists return: bool Whether this key exists in this collection param: string $key Item's key |
get($key) X-Ref |
Return a value from this collection return: mixed Normalized value param: string $key Item's key |
indexOf($value) X-Ref |
Find the index of a given value Will return the first key associated with the given value, or FALSE if the value is not found return: mixed Index of the value, or FALSE if not found param: mixed $value Original value |
set($key, $value) X-Ref |
Set and overwrite a value in this collection return: mixed Normalized value param: string $key Item's key param: mixed $value Item's value |
offsetExists($offset) X-Ref |
return: bool param: string|integer $offset |
offsetGet($offset) X-Ref |
return: mixed param: string|integer $offset |
offsetSet($offset, $value) X-Ref |
return: void param: string|integer $offset param: mixed $value |
offsetUnset($offset) X-Ref |
return: void param: string|integer $offset |
Generated: Sun Jun 23 12:25:44 2024 | Cross-referenced by PHPXref 0.7.1 |