Class Set
Provides the base class for a collection that contains no duplicate
elements.
-
ArrayObject
implements
IteratorAggregate,
Traversable,
ArrayAccess,
Serializable,
Countable
-
Nette\Collections\Collection
implements
Nette\Collections\ICollection
-
Nette\Collections\Set
implements
Nette\Collections\ISet
Methods summary
public
boolean
|
#
append( mixed $item )
Appends the specified element to the end of this collection.
Appends the specified element to the end of this collection.
Parameters
Returns
boolean true if this collection changed as a result of the call
Throws
InvalidArgumentException, \NotSupportedException
|
protected
integer|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.
Returns the index of the first occurrence of the specified element, or FALSE
if this collection does not contain this element.
Parameters
Returns
integer|false
Throws
|
public
|
#
offsetSet( $key, $item )
Not supported (only appending).
Not supported (only appending).
Implementation of
|
public
|
#
offsetGet( $key )
Not supported.
Implementation of
|
public
|
|
public
|
|
Methods inherited from Nette\Collections\Collection
__call(),
__callStatic(),
__clone(),
__construct(),
__get(),
__isset(),
__set(),
__unset(),
beforeAdd(),
clear(),
contains(),
exchangeArray(),
freeze(),
getItemType(),
getIterator(),
getReflection(),
import(),
isFrozen(),
remove(),
setArray(),
updating()
|
Methods inherited from ArrayObject
asort(),
count(),
getArrayCopy(),
getFlags(),
getIteratorClass(),
ksort(),
natcasesort(),
natsort(),
serialize(),
setFlags(),
setIteratorClass(),
uasort(),
uksort(),
unserialize()
|