TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Core\Collection\EditableCollectionInterface Interface Reference
Inheritance diagram for TYPO3\CMS\Core\Collection\EditableCollectionInterface:
t3lib_collection_Editable TYPO3\CMS\Core\Category\Collection\CategoryCollection TYPO3\CMS\Core\Collection\StaticRecordCollection TYPO3\CMS\Frontend\Category\Collection\CategoryCollection t3lib_collection_StaticRecordCollection

Public Member Functions

 add ($data)
 
 addAll (\TYPO3\CMS\Core\Collection\CollectionInterface $other)
 
 remove ($data)
 
 removeAll ()
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Interface for collection classes which es enabled to be modified

Author
Steffen Ritter <typo3steffen-ritter.net>

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
Returns
void

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

◆ addAll()

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

Adds a set of entries to the collection

Parameters
\TYPO3\CMS\Core\Collection\CollectionInterface$other
Returns
void

Implemented in 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.