ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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}
An exception for terminatinating execution or to throw for unit testing.
Interface ilBuddySystemCollection.
clear()
Clears the list.
filter(callable $callable)
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.