ILIAS  release_8 Revision v8.24
interface.ilBuddySystemCollection.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
25interface ilBuddySystemCollection extends Countable, IteratorAggregate, ArrayAccess
26{
31 public function add($element): void;
32
37 public function remove($key): void;
38
43 public function removeElement($element): void;
44
49 public function containsKey($key): bool;
50
55 public function getKey($element);
56
60 public function clear(): void;
61
66 public function contains($element): bool;
67
72 public function get($key);
73
78 public function set($key, $value): void;
79
83 public function isEmpty(): bool;
84
89 public function getKeys(): array;
90
95 public function getValues(): array;
96
102 public function filter(callable $callable): self;
103
112 public function slice(int $offset, int $length = null): self;
113
117 public function toArray(): array;
118
123 public function equals($other): bool;
124}
Interface ilBuddySystemCollection.
clear()
Clears the list.
filter(callable $callable)
Returns all the elements of this collection that satisfy the predicate $callable.
slice(int $offset, int $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.
add($element)
Adds an element at the end of the collection.
string $key
Consumer key/client ID value.
Definition: System.php:193