This interface represents an iterable collection of Model elements.
add(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $objModel) : void
deprecated | Use push. |
---|
\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface
The model to append to the collection.
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException |
When no model has been passed. |
---|
contains(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $model) : bool
bool
containsById(mixed $modelId) : bool
mixed
The model id to search.
bool
diff(\ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface $collection) : \ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface
\ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface
The collection to compute the difference for.
\ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface
The collection containing all the entries from this collection that are not present
in the given collection.get(int $intIndex) : \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface
int
The index of the model to retrieve.
getModelIds() : array
array
insert(int $intIndex, \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $objModel) : void
int
The index where the model shall be placed.
intersect(\ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface $collection) : \ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface
isSubsetOf(\ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface $collection) : boolean
boolean
length() : int
int
pop() : \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface
push(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $objModel) : void
\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface
The model to append to the collection.
\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralRuntimeException |
When no model has been passed. |
---|
remove(mixed $mixedValue) : void
mixed
The index (integer) or InterfaceGeneralModel instance to remove.
removeById(mixed $modelId) : void
mixed
The id of the model to remove.
reverse() : \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface
shift() : \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface
sort(callback $callback) : \ContaoCommunityAlliance\DcGeneral\Data\ModelInterface
callback
The callback function to use.
union(\ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface $collection) : \ContaoCommunityAlliance\DcGeneral\Data\CollectionInterface
unshift(\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface $objModel) : void
\ContaoCommunityAlliance\DcGeneral\Data\ModelInterface
The model to insert into the collection.