ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilBuddySystemCollection Interface Reference

Interface ilBuddySystemCollection. More...

+ Inheritance diagram for ilBuddySystemCollection:
+ Collaboration diagram for ilBuddySystemCollection:

Public Member Functions

 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 (Closure $closure)
 Returns all the elements of this collection that satisfy the predicate $callable. More...
 
 slice ($offset, $length=null)
 Extracts a slice of $length elements starting at position $offset from the Collection. More...
 
 toArray ()
 

Detailed Description

Member Function Documentation

◆ add()

ilBuddySystemCollection::add (   $element)

Adds an element at the end of the collection.

Parameters
mixed$element

Implemented in ilBuddySystemArrayCollection.

◆ clear()

ilBuddySystemCollection::clear ( )

Clears the list.

Implemented in ilBuddySystemArrayCollection.

◆ contains()

ilBuddySystemCollection::contains (   $element)
Parameters
mixed$element
Returns
boolean true if the collection contains the element, false otherwise.

Implemented in ilBuddySystemArrayCollection.

◆ containsKey()

ilBuddySystemCollection::containsKey (   $key)
Parameters
string | integer$keyThe index to check for.
Returns
boolean true if the collection contains the element, false otherwise.

Implemented in ilBuddySystemArrayCollection.

◆ filter()

ilBuddySystemCollection::filter ( Closure  $closure)

Returns all the elements of this collection that satisfy the predicate $callable.

Parameters
Closure$closure
Returns
ilBuddySystemCollection

Implemented in ilBuddySystemArrayCollection.

◆ get()

ilBuddySystemCollection::get (   $key)
Parameters
string | integer$keyThe index of the element to get.
Returns
mixed

Implemented in ilBuddySystemArrayCollection.

◆ getKey()

ilBuddySystemCollection::getKey (   $element)
Parameters
mixed$elementThe element
Returns
string|integer The index of the element.

Implemented in ilBuddySystemArrayCollection.

◆ getKeys()

ilBuddySystemCollection::getKeys ( )

Gets all indices of the collection.

Returns
array The indices of the collection, in the order of the corresponding elements in the collection.

Implemented in ilBuddySystemArrayCollection.

◆ getValues()

ilBuddySystemCollection::getValues ( )

Gets all values of the collection.

Returns
array The values of all elements in the collection, in the order they appear in the collection.

Implemented in ilBuddySystemArrayCollection.

◆ isEmpty()

ilBuddySystemCollection::isEmpty ( )
Returns
boolean true if the collection is empty, false otherwise.

Implemented in ilBuddySystemArrayCollection.

◆ remove()

ilBuddySystemCollection::remove (   $key)
Parameters
string | integer$keyThe index of the element to remove.
Exceptions
InvalidArgumentException

Implemented in ilBuddySystemArrayCollection.

◆ removeElement()

ilBuddySystemCollection::removeElement (   $element)
Parameters
mixed$elementThe element to remove.
Exceptions
InvalidArgumentException

Implemented in ilBuddySystemArrayCollection.

◆ set()

ilBuddySystemCollection::set (   $key,
  $value 
)
Parameters
string  | integer$keyThe index of the element to set.
mixed$value

Implemented in ilBuddySystemArrayCollection.

◆ slice()

ilBuddySystemCollection::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.

Parameters
int$offsetThe offset to start from.
int | null$lengthThe maximum number of elements to return, or null for no limit.
Returns
ilBuddySystemCollection

Implemented in ilBuddySystemArrayCollection.

◆ toArray()

ilBuddySystemCollection::toArray ( )
Returns
array

Implemented in ilBuddySystemArrayCollection.


The documentation for this interface was generated from the following file: