ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
add ($element) | |
Add an element to the collection. More... | |
getOnlyElement () | |
Shorthand for getting a single element that also must be the only element in the collection. More... | |
first () | |
Return the first element from the collection. More... | |
last () | |
Return the last element from the collection. More... | |
map (\Closure $function) | |
Applies the given function to each element in the collection and returns a new collection with the elements returned by the function. More... | |
filter (\Closure $filterFunction) | |
get ($key) | |
Get the element at index. More... | |
remove ($element) | |
set ($key, $value) | |
Set the value for index. More... | |
Definition at line 5 of file Collection.php.
SAML2\Utilities\Collection::add | ( | $element | ) |
Add an element to the collection.
$element |
Implemented in SAML2\Utilities\ArrayCollection, SAML2\Certificate\FingerprintCollection, and SAML2\Certificate\KeyCollection.
SAML2\Utilities\Collection::filter | ( | \Closure | $filterFunction | ) |
SAML2\Utilities\Collection::first | ( | ) |
Return the first element from the collection.
Implemented in SAML2\Utilities\ArrayCollection.
SAML2\Utilities\Collection::get | ( | $key | ) |
Get the element at index.
mixed | $key |
Implemented in SAML2\Utilities\ArrayCollection.
SAML2\Utilities\Collection::getOnlyElement | ( | ) |
Shorthand for getting a single element that also must be the only element in the collection.
Implemented in SAML2\Utilities\ArrayCollection.
SAML2\Utilities\Collection::last | ( | ) |
Return the last element from the collection.
Implemented in SAML2\Utilities\ArrayCollection.
SAML2\Utilities\Collection::map | ( | \Closure | $function | ) |
Applies the given function to each element in the collection and returns a new collection with the elements returned by the function.
callable | $function |
Implemented in SAML2\Utilities\ArrayCollection.
SAML2\Utilities\Collection::remove | ( | $element | ) |
$element |
Implemented in SAML2\Utilities\ArrayCollection.
SAML2\Utilities\Collection::set | ( | $key, | |
$value | |||
) |
Set the value for index.
mixed | $key | |
mixed | $value |
Implemented in SAML2\Utilities\ArrayCollection.