ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class EntryLockingStringMap. More...
Public Member Functions | |
__construct () | |
EntryLockingStringMap constructor. More... | |
get ($key) | |
Returns the value of the given key. More... | |
toArray () | |
Returns all currently known entries. More... | |
has ($key) | |
Probe if the key is known and associated with a value. More... | |
put ($key, $value) | |
Puts a new key value pair into the string array. More... | |
put ($key, $value) | |
Puts a new key value pair into the string array. More... | |
get ($key) | |
Returns the value of the key from the additional metadata. More... | |
toArray () | |
Returns all currently known entries. More... | |
has ($key) | |
Probe if the key is known and associated with a value. More... | |
Private Attributes | |
$map | |
Class EntryLockingStringMap.
Implementation of the StringMap which locks the entry after it got created. Therefore it is not possible to overwrite an existing key.
@Internal
Definition at line 21 of file EntryLockingStringMap.php.
ILIAS\FileUpload\Collection\EntryLockingStringMap::__construct | ( | ) |
EntryLockingStringMap constructor.
Definition at line 33 of file EntryLockingStringMap.php.
ILIAS\FileUpload\Collection\EntryLockingStringMap::get | ( | $key | ) |
Returns the value of the given key.
string | $key | The key which should be used to search the corresponding value. |
NoSuchElementException | Thrown if the entry is not found with the given key. |
InvalidArgumentException Thrown if the key type is not of the type string.
Implements ILIAS\FileUpload\Collection\ImmutableStringMap.
Definition at line 51 of file EntryLockingStringMap.php.
References $key.
ILIAS\FileUpload\Collection\EntryLockingStringMap::has | ( | $key | ) |
Probe if the key is known and associated with a value.
string | $key | The key which should be checked. |
InvalidArgumentException Thrown if the key type is not of the type string.
Implements ILIAS\FileUpload\Collection\ImmutableStringMap.
Definition at line 87 of file EntryLockingStringMap.php.
References $key.
ILIAS\FileUpload\Collection\EntryLockingStringMap::put | ( | $key, | |
$value | |||
) |
Puts a new key value pair into the string array.
The put operation can not overwrite an existing pair.
string | $key | The key which should be put into the map. |
string | $value | The value which should be associated with the given key. |
ElementAlreadyExistsException | Thrown if the key already exists in the map. |
InvalidArgumentException Thrown if the key or value is not of the type string.
Implements ILIAS\FileUpload\Collection\StringMap.
Definition at line 110 of file EntryLockingStringMap.php.
References $key.
ILIAS\FileUpload\Collection\EntryLockingStringMap::toArray | ( | ) |
Returns all currently known entries.
Implements ILIAS\FileUpload\Collection\ImmutableStringMap.
Definition at line 70 of file EntryLockingStringMap.php.
|
private |
Definition at line 27 of file EntryLockingStringMap.php.