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(), clear(), contains(), exchangeArray(), freeze(), getClass(), getItemType(), getIterator(), import(), isFrozen(), isReadOnly(), remove(), search(), setArray(), setReadOnly(), updating(), __call(), __callStatic(), __clone(), __get(), __isset(), __set(), __unset() |
Method Details | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
line 45 appendpublic bool append (mixed $item) Appends the specified element to the end of this collection. Implementation of:
|
||||||||||||||||||
line 120 offsetExistspublic void offsetExists ($key) Not supported.
|
||||||||||||||||||
line 110 offsetGetpublic void offsetGet ($key) Not supported.
|
||||||||||||||||||
line 96 offsetSetpublic void offsetSet ($key, $item) Not supported (only appending).
|
||||||||||||||||||
line 130 offsetUnsetpublic void offsetUnset ($key) Not supported.
|
||||||||||||||||||
line 76 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.
|