ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class ilBuddySystemArrayCollection A collection which contains all entries of a buddy list. More...
Public Member Functions | |||||||
__construct (array $elements=array()) | |||||||
getIterator () | |||||||
offsetExists ($offset) | |||||||
offsetGet ($offset) | |||||||
offsetSet ($offset, $value) | |||||||
offsetUnset ($offset) | |||||||
count () | |||||||
add ($element) | |||||||
Adds an element at the end of the collection.
| |||||||
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.
| |||||||
getValues () | |||||||
Gets all values of the collection.
| |||||||
filter (Closure $p) | |||||||
Returns all the elements of this collection that satisfy the predicate $callable.
| |||||||
slice ($offset, $length=null) | |||||||
Extracts a slice of $length elements starting at position $offset from the Collection.If $length is null it returns all elements from $offset to the end of the Collection. Calling this method will only return the selected slice and NOT change the elements contained in the collection slice is called on.
| |||||||
toArray () | |||||||
Private Attributes | |
$elements = array() | |
Class ilBuddySystemArrayCollection A collection which contains all entries of a buddy list.
Definition at line 11 of file class.ilBuddySystemArrayCollection.php.
array | $elements |
Definition at line 21 of file class.ilBuddySystemArrayCollection.php.
References $elements.
ilBuddySystemArrayCollection::add | ( | $element | ) |
Adds an element at the end of the collection.
mixed | $element |
Implements ilBuddySystemCollection.
Definition at line 82 of file class.ilBuddySystemArrayCollection.php.
Referenced by offsetSet().
ilBuddySystemArrayCollection::clear | ( | ) |
Clears the list.
Implements ilBuddySystemCollection.
Definition at line 130 of file class.ilBuddySystemArrayCollection.php.
References array.
ilBuddySystemArrayCollection::contains | ( | $element | ) |
mixed | $element |
Implements ilBuddySystemCollection.
Definition at line 138 of file class.ilBuddySystemArrayCollection.php.
ilBuddySystemArrayCollection::containsKey | ( | $key | ) |
string | integer | $key | The index to check for. |
Implements ilBuddySystemCollection.
Definition at line 113 of file class.ilBuddySystemArrayCollection.php.
References $key.
Referenced by offsetExists().
ilBuddySystemArrayCollection::count | ( | ) |
Definition at line 74 of file class.ilBuddySystemArrayCollection.php.
ilBuddySystemArrayCollection::filter | ( | Closure | $p | ) |
Returns all the elements of this collection that satisfy the predicate $callable.
Closure | $closure |
Implements ilBuddySystemCollection.
Definition at line 186 of file class.ilBuddySystemArrayCollection.php.
ilBuddySystemArrayCollection::get | ( | $key | ) |
string | integer | $key | The index of the element to get. |
Implements ilBuddySystemCollection.
Definition at line 146 of file class.ilBuddySystemArrayCollection.php.
References $key.
ilBuddySystemArrayCollection::getIterator | ( | ) |
Definition at line 29 of file class.ilBuddySystemArrayCollection.php.
ilBuddySystemArrayCollection::getKey | ( | $element | ) |
mixed | $element | The element |
Implements ilBuddySystemCollection.
Definition at line 122 of file class.ilBuddySystemArrayCollection.php.
ilBuddySystemArrayCollection::getKeys | ( | ) |
Gets all indices of the collection.
Implements ilBuddySystemCollection.
Definition at line 170 of file class.ilBuddySystemArrayCollection.php.
ilBuddySystemArrayCollection::getValues | ( | ) |
Gets all values of the collection.
Implements ilBuddySystemCollection.
Definition at line 178 of file class.ilBuddySystemArrayCollection.php.
ilBuddySystemArrayCollection::isEmpty | ( | ) |
Implements ilBuddySystemCollection.
Definition at line 162 of file class.ilBuddySystemArrayCollection.php.
ilBuddySystemArrayCollection::offsetExists | ( | $offset | ) |
Definition at line 37 of file class.ilBuddySystemArrayCollection.php.
References containsKey().
ilBuddySystemArrayCollection::offsetGet | ( | $offset | ) |
Definition at line 45 of file class.ilBuddySystemArrayCollection.php.
ilBuddySystemArrayCollection::offsetSet | ( | $offset, | |
$value | |||
) |
Definition at line 53 of file class.ilBuddySystemArrayCollection.php.
References add().
ilBuddySystemArrayCollection::offsetUnset | ( | $offset | ) |
Definition at line 66 of file class.ilBuddySystemArrayCollection.php.
ilBuddySystemArrayCollection::remove | ( | $key | ) |
string | integer | $key | The index of the element to remove. |
InvalidArgumentException |
Implements ilBuddySystemCollection.
Definition at line 90 of file class.ilBuddySystemArrayCollection.php.
References $key.
ilBuddySystemArrayCollection::removeElement | ( | $element | ) |
mixed | $element | The element to remove. |
InvalidArgumentException |
Implements ilBuddySystemCollection.
Definition at line 101 of file class.ilBuddySystemArrayCollection.php.
References $key.
ilBuddySystemArrayCollection::set | ( | $key, | |
$value | |||
) |
string | integer | $key | The index of the element to set. |
mixed | $value |
Implements ilBuddySystemCollection.
Definition at line 154 of file class.ilBuddySystemArrayCollection.php.
References $key.
ilBuddySystemArrayCollection::slice | ( | $offset, | |
$length = null |
|||
) |
Extracts a slice of $length elements starting at position $offset from the Collection.If $length is null it returns all elements from $offset to the end of the Collection. Calling this method will only return the selected slice and NOT change the elements contained in the collection slice is called on.
int | $offset | The offset to start from. |
int | null | $length | The maximum number of elements to return, or null for no limit. |
Implements ilBuddySystemCollection.
Definition at line 194 of file class.ilBuddySystemArrayCollection.php.
ilBuddySystemArrayCollection::toArray | ( | ) |
Implements ilBuddySystemCollection.
Definition at line 202 of file class.ilBuddySystemArrayCollection.php.
References $elements.
|
private |
Definition at line 16 of file class.ilBuddySystemArrayCollection.php.
Referenced by __construct(), and toArray().