Class ArrayList (namespace Nette\Collections)
Provides the base class for a generic list (items can be accessed by index).
ArrayObject | --Collection | --ArrayList
Implements interfaces:
Direct Known Sub-classes:
| Method Summary | |
|---|---|
| int|FALSE |
indexOf
(mixed $item)
Returns the index of the first occurrence of the specified element,.
|
| bool |
insertAt
(int $index, mixed $item)
Inserts the specified element at the specified position in this list.
|
| bool |
offsetExists
(int $index)
Exists item? (\ArrayAccess implementation).
|
| mixed |
offsetGet
(int $index)
Returns item (\ArrayAccess implementation).
|
| void |
offsetSet
(int $index, object $item)
Replaces (or appends) the item (\ArrayAccess implementation).
|
| void |
offsetUnset
(int $index)
Removes the element at the specified position in this list.
|
| bool |
remove
(mixed $item)
Removes the first occurrence of the specified element.
|
| Variable Summary | ||||
|---|---|---|---|---|
| protected int | $base | 0 |
line 41 |
|
| Method Details | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
line 96 indexOfpublic int|FALSE indexOf (mixed $item) Returns the index of the first occurrence of the specified element,. or FALSE if this list does not contain this element. Implementation of:
|
|||||||||||||||||||||
|
line 51 insertAtpublic bool insertAt (int $index, mixed $item) Inserts the specified element at the specified position in this list. Implementation of:
|
|||||||||||||||||||||
|
line 156 offsetExistspublic bool offsetExists (int $index) Exists item? (\ArrayAccess implementation).
|
|||||||||||||||||||||
|
line 139 offsetGetpublic mixed offsetGet (int $index) Returns item (\ArrayAccess implementation).
|
|||||||||||||||||||||
|
line 115 offsetSetpublic void offsetSet (int $index, object $item) Replaces (or appends) the item (\ArrayAccess implementation).
|
|||||||||||||||||||||
|
line 170 offsetUnsetpublic void offsetUnset (int $index) Removes the element at the specified position in this list.
|
|||||||||||||||||||||
|
line 73 removepublic bool remove (mixed $item) Removes the first occurrence of the specified element. Implementation of:
|
|||||||||||||||||||||