ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
interface.ilBuddySystemCollection.php
Go to the documentation of this file.
1 <?php declare(strict_types=1);
2 /* Copyright (c) 1998-2015 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
9 {
14  public function add($element) : void;
15 
20  public function remove($key) : void;
21 
26  public function removeElement($element) : void;
27 
32  public function containsKey($key) : bool;
33 
38  public function getKey($element);
39 
43  public function clear() : void;
44 
49  public function contains($element) : bool;
50 
55  public function get($key);
56 
61  public function set($key, $value) : void;
62 
66  public function isEmpty() : bool;
67 
72  public function getKeys() : array;
73 
78  public function getValues() : array;
79 
85  public function filter(callable $callable);
86 
95  public function slice($offset, $length = null);
96 
100  public function toArray() : array;
101 }
Interface ilBuddySystemCollection.
slice($offset, $length=null)
Extracts a slice of $length elements starting at position $offset from the Collection.
getKeys()
Gets all indices of the collection.
filter(callable $callable)
Returns all the elements of this collection that satisfy the predicate $callable. ...
getValues()
Gets all values of the collection.
clear()
Clears the list.
add($element)
Adds an element at the end of the collection.