Class Set (namespace Nette\Collections)
Provides the base class for a collection that contains no duplicate elements.
ArrayObject | --Collection | --Set
Implements interfaces:
Public Method Summary | |
---|---|
bool |
append
(mixed $item)
Appends the specified element to the end of this collection.
|
void |
offsetExists
($key)
Not supported.
|
void |
offsetGet
($key)
Not supported.
|
void |
offsetSet
($key, $item)
Not supported (only appending).
|
void |
offsetUnset
($key)
Not supported.
|
Protected Method Summary | |
---|---|
protected int|FALSE |
search
(mixed $item)
Returns the index of the first occurrence of the specified element, or FALSE if this collection does not contain this element.
|
Methods Inherited From Collection |
---|
__construct(), append(), beforeAdd(), beforeRemove(), clear(), contains(), exchangeArray(), getClass(), getIterator(), import(), isReadOnly(), remove(), search(), setArray(), setReadOnly(), __call(), __callStatic(), __get(), __isset(), __set(), __unset() |
Variable Summary |
---|
Method Details | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
line 46 appendpublic bool append (mixed $item) Appends the specified element to the end of this collection. Implementation of:
|
||||||||||||||||||
line 121 offsetExistspublic void offsetExists ($key) Not supported.
|
||||||||||||||||||
line 111 offsetGetpublic void offsetGet ($key) Not supported.
|
||||||||||||||||||
line 97 offsetSetpublic void offsetSet ($key, $item) Not supported (only appending).
|
||||||||||||||||||
line 131 offsetUnsetpublic void offsetUnset ($key) Not supported.
|
||||||||||||||||||
line 77 searchprotected int|FALSE search (mixed $item) Returns the index of the first occurrence of the specified element, or FALSE if this collection does not contain this element.
|