ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
interface.ilBuddySystemCollection.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2015 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
9 {
14  public function add($element);
15 
20  public function remove($key);
21 
26  public function removeElement($element);
27 
32  public function containsKey($key);
33 
38  public function getKey($element);
39 
43  public function clear();
44 
49  public function contains($element);
50 
55  public function get($key);
56 
61  public function set($key, $value);
62 
66  public function isEmpty();
67 
72  public function getKeys();
73 
78  public function getValues();
79 
85  public function filter(Closure $closure);
86 
95  public function slice($offset, $length = null);
96 
100  public function toArray();
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.
getValues()
Gets all values of the collection.
filter(Closure $closure)
Returns all the elements of this collection that satisfy the predicate $callable. ...
clear()
Clears the list.
add($element)
Adds an element at the end of the collection.