TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Core\Collection\EditableCollectionInterface Interface Reference
Inheritance diagram for TYPO3\CMS\Core\Collection\EditableCollectionInterface:
TYPO3\CMS\Core\Category\Collection\CategoryCollection TYPO3\CMS\Core\Collection\StaticRecordCollection 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 20 of file EditableCollectionInterface.php.

Member Function Documentation

◆ add()

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

Adds on entry to the collection

Parameters
mixed$data
Returns
void

Implemented in TYPO3\CMS\Core\Category\Collection\CategoryCollection, and TYPO3\CMS\Core\Collection\StaticRecordCollection.

◆ addAll()

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

Adds a set of entries to the collection

Parameters
CollectionInterface$other
Returns
void

Implemented in TYPO3\CMS\Core\Category\Collection\CategoryCollection, and TYPO3\CMS\Core\Collection\StaticRecordCollection.

◆ remove()

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

Remove the given entry from collection

Note: not the given "index"

Parameters
mixed$data
Returns
void

Implemented in TYPO3\CMS\Core\Category\Collection\CategoryCollection, and TYPO3\CMS\Core\Collection\StaticRecordCollection.

◆ removeAll()

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

Removes all entries from the collection

collection will be empty afterwards

Returns
void

Implemented in TYPO3\CMS\Core\Category\Collection\CategoryCollection, and TYPO3\CMS\Core\Collection\StaticRecordCollection.