db
OrderedSet Class Reference

Inherits SetCollection.

Public Member Functions

 __construct ($elements=[], $class=NULL)
 
 add ($e)
 
 addAll ($c)
 
 clear ()
 
 contains ($o)
 
 containsAll ($c)
 
 getIterator ()
 
 isEmpty ()
 
 removeAll ($c)
 
 removeElement ($o)
 
 retainAll ($c)
 
 size ()
 
 toArray ()
 

Protected Attributes

 $elements = []
 
 $class = NULL
 

Detailed Description

Mnozina ktera je reprezentovana serazenym polem

Author
drymld

Constructor & Destructor Documentation

◆ __construct()

__construct (   $elements = [],
  $class = NULL 
)
Parameters
Collection | array | class$elementselementy seznamu nebo trida, ktara se ma v seznamu ukladat
class$classtrida, ktara se ma v seznamu ukladat

Member Function Documentation

◆ add()

add (   $element)
Parameters
mixed$e
Returns
boolean

Implements Collection.

◆ addAll()

addAll (   $c)

prida vsechny

Parameters
Collection | array$c
Returns
boolean

Implements Collection.

◆ clear()

clear ( )

odstrani vsechny prvky

Implements Collection.

◆ contains()

contains (   $o)
Parameters
mixed$oobsahuje element
bool$strictIf the second parameter strict is set to TRUE then the in_array() function will also check the types of the needle in the haystack.
Returns
boolean

Implements Collection.

◆ containsAll()

containsAll (   $c)
Parameters
Collection | array$c
Returns
boolean

Implements Collection.

◆ getIterator()

getIterator ( )

◆ isEmpty()

isEmpty ( )
Returns
boolean

Implements Collection.

◆ removeAll()

removeAll (   $c)
Parameters
Collection | array$c
Returns
boolean

Implements Collection.

◆ removeElement()

removeElement (   $o)

odstrani dany element

Parameters
type$o
Returns
boolean

Implements Collection.

◆ retainAll()

retainAll (   $c)
Parameters
Collection | array$c
Returns
boolean

Implements Collection.

◆ size()

size ( )
Returns
int

Implements Collection.

◆ toArray()

toArray ( )
Returns
array Description

Implements Collection.

Member Data Documentation

◆ $class

$class = NULL
protected

◆ $elements

$elements = []
protected

kolekce ulozenych prvku


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