ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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
8interface ilBuddySystemCollection extends Countable, IteratorAggregate, ArrayAccess
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.
clear()
Clears the list.
filter(Closure $closure)
Returns all the elements of this collection that satisfy the predicate $callable.
getKeys()
Gets all indices of the collection.
getValues()
Gets all values of the collection.
add($element)
Adds an element at the end of the collection.
slice($offset, $length=null)
Extracts a slice of $length elements starting at position $offset from the Collection.