|
ILIAS
release_8 Revision v8.24
|
Class ilBuddySystemArrayCollection A collection which contains all entries of a buddy list. More...
Inheritance diagram for ilBuddySystemArrayCollection:
Collaboration diagram for ilBuddySystemArrayCollection:Public Member Functions | |
| __construct (array $elements=[]) | |
| getIterator () | |
| @inheritDoc More... | |
| offsetExists ($offset) | |
| @inheritDoc More... | |
| offsetGet ($offset) | |
| @inheritDoc More... | |
| offsetSet ($offset, $value) | |
| @inheritDoc More... | |
| offsetUnset ($offset) | |
| @inheritDoc More... | |
| count () | |
| @inheritDoc More... | |
| add ($element) | |
| @inheritDoc More... | |
| remove ($key) | |
| @inheritDoc More... | |
| removeElement ($element) | |
| @inheritDoc More... | |
| containsKey ($key) | |
| isset is used for performance reasons (array_key_exists is much slower). More... | |
| getKey ($element) | |
| @inheritDoc More... | |
| clear () | |
| @inheritDoc More... | |
| contains ($element) | |
| @inheritDoc More... | |
| get ($key) | |
| @inheritDoc More... | |
| set ($key, $value) | |
| @inheritDoc More... | |
| isEmpty () | |
| @inheritDoc More... | |
| getKeys () | |
| @inheritDoc More... | |
| getValues () | |
| @inheritDoc More... | |
| filter (callable $callable) | |
| @inheritDoc More... | |
| slice (int $offset, int $length=null) | |
| @inheritDoc More... | |
| toArray () | |
| @inheritDoc More... | |
| equals ($other) | |
| add ($element) | |
| Adds an element at the end of the collection. More... | |
| remove ($key) | |
| removeElement ($element) | |
| containsKey ($key) | |
| getKey ($element) | |
| clear () | |
| Clears the list. More... | |
| contains ($element) | |
| get ($key) | |
| set ($key, $value) | |
| isEmpty () | |
| getKeys () | |
| Gets all indices of the collection. More... | |
| getValues () | |
| Gets all values of the collection. More... | |
| filter (callable $callable) | |
| Returns all the elements of this collection that satisfy the predicate $callable. More... | |
| slice (int $offset, int $length=null) | |
| Extracts a slice of $length elements starting at position $offset from the Collection. More... | |
| toArray () | |
| equals ($other) | |
Private Attributes | |
| array | $elements |
Class ilBuddySystemArrayCollection A collection which contains all entries of a buddy list.
Definition at line 26 of file class.ilBuddySystemArrayCollection.php.
| ilBuddySystemArrayCollection::__construct | ( | array | $elements = [] | ) |
Definition at line 30 of file class.ilBuddySystemArrayCollection.php.
References $elements.
| ilBuddySystemArrayCollection::add | ( | $element | ) |
@inheritDoc
Implements ilBuddySystemCollection.
Definition at line 92 of file class.ilBuddySystemArrayCollection.php.
Referenced by offsetSet().
Here is the caller graph for this function:| ilBuddySystemArrayCollection::clear | ( | ) |
@inheritDoc
Implements ilBuddySystemCollection.
Definition at line 142 of file class.ilBuddySystemArrayCollection.php.
| ilBuddySystemArrayCollection::contains | ( | $element | ) |
@inheritDoc
Implements ilBuddySystemCollection.
Definition at line 150 of file class.ilBuddySystemArrayCollection.php.
| ilBuddySystemArrayCollection::containsKey | ( | $key | ) |
isset is used for performance reasons (array_key_exists is much slower).
array_key_exists is only used in case of a null value (see https://www.php.net/manual/en/function.array-key-exists.php Example #2 array_key_exists() vs isset()).
@inheritDoc
Implements ilBuddySystemCollection.
Definition at line 126 of file class.ilBuddySystemArrayCollection.php.
References ILIAS\LTI\ToolProvider\$key.
Referenced by offsetExists(), and remove().
Here is the caller graph for this function:| ilBuddySystemArrayCollection::count | ( | ) |
@inheritDoc
Definition at line 84 of file class.ilBuddySystemArrayCollection.php.
References count().
Referenced by count().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBuddySystemArrayCollection::equals | ( | $other | ) |
| mixed | $other |
Implements ilBuddySystemCollection.
Definition at line 219 of file class.ilBuddySystemArrayCollection.php.
References toArray().
Here is the call graph for this function:| ilBuddySystemArrayCollection::filter | ( | callable | $callable | ) |
@inheritDoc
Implements ilBuddySystemCollection.
Definition at line 198 of file class.ilBuddySystemArrayCollection.php.
Referenced by ilBuddySystemRelationStateFilterRule\getStates().
Here is the caller graph for this function:| ilBuddySystemArrayCollection::get | ( | $key | ) |
@inheritDoc
Implements ilBuddySystemCollection.
Definition at line 158 of file class.ilBuddySystemArrayCollection.php.
References ILIAS\LTI\ToolProvider\$key.
| ilBuddySystemArrayCollection::getIterator | ( | ) |
@inheritDoc
Definition at line 38 of file class.ilBuddySystemArrayCollection.php.
| ilBuddySystemArrayCollection::getKey | ( | $element | ) |
@inheritDoc
Implements ilBuddySystemCollection.
Definition at line 134 of file class.ilBuddySystemArrayCollection.php.
| ilBuddySystemArrayCollection::getKeys | ( | ) |
@inheritDoc
Implements ilBuddySystemCollection.
Definition at line 182 of file class.ilBuddySystemArrayCollection.php.
| ilBuddySystemArrayCollection::getValues | ( | ) |
@inheritDoc
Implements ilBuddySystemCollection.
Definition at line 190 of file class.ilBuddySystemArrayCollection.php.
| ilBuddySystemArrayCollection::isEmpty | ( | ) |
@inheritDoc
Implements ilBuddySystemCollection.
Definition at line 174 of file class.ilBuddySystemArrayCollection.php.
| ilBuddySystemArrayCollection::offsetExists | ( | $offset | ) |
@inheritDoc
Definition at line 46 of file class.ilBuddySystemArrayCollection.php.
References containsKey().
Here is the call graph for this function:| ilBuddySystemArrayCollection::offsetGet | ( | $offset | ) |
@inheritDoc
Definition at line 54 of file class.ilBuddySystemArrayCollection.php.
| ilBuddySystemArrayCollection::offsetSet | ( | $offset, | |
| $value | |||
| ) |
@inheritDoc
Definition at line 62 of file class.ilBuddySystemArrayCollection.php.
References add().
Here is the call graph for this function:| ilBuddySystemArrayCollection::offsetUnset | ( | $offset | ) |
@inheritDoc
Definition at line 76 of file class.ilBuddySystemArrayCollection.php.
| ilBuddySystemArrayCollection::remove | ( | $key | ) |
@inheritDoc
Implements ilBuddySystemCollection.
Definition at line 100 of file class.ilBuddySystemArrayCollection.php.
References ILIAS\LTI\ToolProvider\$key, and containsKey().
Here is the call graph for this function:| ilBuddySystemArrayCollection::removeElement | ( | $element | ) |
@inheritDoc
Implements ilBuddySystemCollection.
Definition at line 111 of file class.ilBuddySystemArrayCollection.php.
References ILIAS\LTI\ToolProvider\$key.
| ilBuddySystemArrayCollection::set | ( | $key, | |
| $value | |||
| ) |
@inheritDoc
Implements ilBuddySystemCollection.
Definition at line 166 of file class.ilBuddySystemArrayCollection.php.
References ILIAS\LTI\ToolProvider\$key.
| ilBuddySystemArrayCollection::slice | ( | int | $offset, |
| int | $length = null |
||
| ) |
@inheritDoc
Implements ilBuddySystemCollection.
Definition at line 206 of file class.ilBuddySystemArrayCollection.php.
| ilBuddySystemArrayCollection::toArray | ( | ) |
@inheritDoc
Implements ilBuddySystemCollection.
Definition at line 214 of file class.ilBuddySystemArrayCollection.php.
References $elements.
Referenced by equals().
Here is the caller graph for this function:
|
private |
Definition at line 28 of file class.ilBuddySystemArrayCollection.php.
Referenced by __construct(), and toArray().