‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Collection\EditableCollectionInterface Interface Reference
Inheritance diagram for TYPO3\CMS\Core\Collection\EditableCollectionInterface:
TYPO3\CMS\Core\Category\Collection\CategoryCollection TYPO3\CMS\Frontend\Category\Collection\CategoryCollection

Public Member Functions

 add ($data)
 
 addAll (CollectionInterface $other)
 
 remove ($data)
 
 removeAll ()
 

Detailed Description

Interface for collection classes which es enabled to be modified

Definition at line 21 of file EditableCollectionInterface.php.

Member Function Documentation

◆ add()

TYPO3\CMS\Core\Collection\EditableCollectionInterface::add (   $data)

Adds on entry to the collection

Parameters
mixed$data

Implemented in TYPO3\CMS\Core\Category\Collection\CategoryCollection.

◆ addAll()

TYPO3\CMS\Core\Collection\EditableCollectionInterface::addAll ( CollectionInterface  $other)

Adds a set of entries to the collection

Implemented in TYPO3\CMS\Core\Category\Collection\CategoryCollection.

◆ remove()

TYPO3\CMS\Core\Collection\EditableCollectionInterface::remove (   $data)

Remove the given entry from collection

Note: not the given "index"

Parameters
mixed$data

Implemented in TYPO3\CMS\Core\Category\Collection\CategoryCollection.

◆ removeAll()

TYPO3\CMS\Core\Collection\EditableCollectionInterface::removeAll ( )

Removes all entries from the collection

collection will be empty afterwards

Implemented in TYPO3\CMS\Core\Category\Collection\CategoryCollection.