‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Tests\Unit\Resource\Collection\Fixtures\OtherTestingFileCollection Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Unit\Resource\Collection\Fixtures\OtherTestingFileCollection:
TYPO3\CMS\Core\Resource\Collection\AbstractFileCollection TYPO3\CMS\Core\Collection\AbstractRecordCollection TYPO3\CMS\Core\Collection\AbstractRecordCollection TYPO3\CMS\Core\Collection\SortableCollectionInterface TYPO3\CMS\Core\Collection\PersistableCollectionInterface TYPO3\CMS\Core\Collection\RecordCollectionInterface TYPO3\CMS\Core\Collection\RecordCollectionInterface TYPO3\CMS\Core\Collection\SortableCollectionInterface TYPO3\CMS\Core\Collection\PersistableCollectionInterface TYPO3\CMS\Core\Collection\RecordCollectionInterface TYPO3\CMS\Core\Collection\RecordCollectionInterface

Public Member Functions

 loadContents ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\Resource\Collection\AbstractFileCollection
 setDescription ($description)
 
string key ()
 
array toArray ()
 
array getItems ()
 
 fromArray (array $array)
 
mixed getItemsCriteria ()
 
 setItemsCriteria ($itemsCriteria)
 
 add (FileInterface $data)
 
 addAll (CollectionInterface $other)
 
 remove (File $file)
 
 removeAll ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\Collection\AbstractRecordCollection
 __construct ()
 
T null current ()
 
 next ()
 
bool valid ()
 
 rewind ()
 
 __serialize ()
 
 __unserialize (array $arrayRepresentation)
 
int count ()
 
string getTitle ()
 
int getUid ()
 
string getDescription ()
 
 setTitle ($title)
 
string getItemTableName ()
 
 setItemTableName ($tableName)
 
 usort ($callbackFunction)
 
 moveItemAt ($currentPosition, $newPosition=0)
 
int getIdentifier ()
 
 setIdentifier ($id)
 
 persist ()
 

Additional Inherited Members

- ‪Static Public Member Functions inherited from ‪TYPO3\CMS\Core\Collection\AbstractRecordCollection
static CollectionInterface load ($id, $fillItems=false)
 
static CollectionInterface create (array $collectionRecord, $fillItems=false)
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Core\Resource\Collection\AbstractFileCollection
string getItemUidList ($includeTableName=false)
 
array getPersistableDataArray ()
 
- ‪Static Protected Member Functions inherited from ‪TYPO3\CMS\Core\Collection\AbstractRecordCollection
static getCollectionDatabaseTable ()
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Core\Resource\Collection\AbstractFileCollection
mixed $itemsCriteria
 
string $itemTableName = 'sys_file'
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Core\Collection\AbstractRecordCollection
int $uid = 0
 
string $title
 
string $description
 
string $itemTableName
 
SplDoublyLinkedList $storage
 
- ‪Static Protected Attributes inherited from ‪TYPO3\CMS\Core\Resource\Collection\AbstractFileCollection
static string $storageTableName = 'sys_file_collection'
 
static string $type
 
static string $itemsCriteriaField
 
- ‪Static Protected Attributes inherited from ‪TYPO3\CMS\Core\Collection\AbstractRecordCollection
static string $storageItemsField = 'items'
 
static string $storageTableName = ''
 

Detailed Description

Testing subclass of the abstract class.

This class exists because some tests need instances of different file collection classes.

Definition at line 27 of file OtherTestingFileCollection.php.

Member Function Documentation

◆ loadContents()

TYPO3\CMS\Core\Tests\Unit\Resource\Collection\Fixtures\OtherTestingFileCollection::loadContents ( )

Populates the content-entries of the storage

Queries the underlying storage for entries of the collection and adds them to the collection data.

If the content entries of the storage had not been loaded on creation ($fillItems = false) this function is to be used for loading the contents afterwards.

Implements TYPO3\CMS\Core\Collection\PersistableCollectionInterface.

Definition at line 29 of file OtherTestingFileCollection.php.