‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Resource\Collection\StaticFileCollection Class Reference
Inheritance diagram for TYPO3\CMS\Core\Resource\Collection\StaticFileCollection:
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 ()
 

Protected Attributes

string $itemTableName = 'sys_file_reference'
 
- ‪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

static string $type = 'static'
 
static string $itemsCriteriaField = 'files'
 
- ‪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 = ''
 

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 ()
 

Detailed Description

A collection containing a static set of files. This collection is persisted to the database with references to all files it contains.

Definition at line 25 of file StaticFileCollection.php.

Member Function Documentation

◆ loadContents()

TYPO3\CMS\Core\Resource\Collection\StaticFileCollection::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 49 of file StaticFileCollection.php.

References TYPO3\CMS\Core\Resource\Collection\AbstractFileCollection\add(), and TYPO3\CMS\Core\Collection\AbstractRecordCollection\getIdentifier().

Member Data Documentation

◆ $itemsCriteriaField

string TYPO3\CMS\Core\Resource\Collection\StaticFileCollection::$itemsCriteriaField = 'files'
staticprotected

Definition at line 33 of file StaticFileCollection.php.

◆ $itemTableName

string TYPO3\CMS\Core\Resource\Collection\StaticFileCollection::$itemTableName = 'sys_file_reference'
protected

Definition at line 37 of file StaticFileCollection.php.

◆ $type

string TYPO3\CMS\Core\Resource\Collection\StaticFileCollection::$type = 'static'
staticprotected

Definition at line 29 of file StaticFileCollection.php.