TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
CategoryBasedFileCollection Class Reference
Inheritance diagram for CategoryBasedFileCollection:
AbstractFileCollection AbstractRecordCollection RecordCollectionInterface PersistableCollectionInterface SortableCollectionInterface CollectionInterface NameableCollectionInterface

Public Member Functions

 loadContents ()
 
- Public Member Functions inherited from AbstractFileCollection
 setDescription ($description)
 
 setTitle ($title)
 
 fromArray (array $array)
 
 getItemsCriteria ()
 
 setItemsCriteria ($itemsCriteria)
 
 add (FileInterface $data)
 
 removeAll ()
 
- Public Member Functions inherited from AbstractRecordCollection
 __construct ()
 
 current ()
 
 next ()
 
 key ()
 
 valid ()
 
 rewind ()
 
 serialize ()
 
 unserialize ($serialized)
 
 count ()
 
 getTitle ()
 
 getUid ()
 
 getDescription ()
 
 setTitle ($title)
 
 setDescription ($desc)
 
 getItemTableName ()
 
 setItemTableName ($tableName)
 
 usort ($callbackFunction)
 
 moveItemAt ($currentPosition, $newPosition=0)
 
 getIdentifier ()
 
 setIdentifier ($id)
 
 toArray ()
 
 fromArray (array $array)
 
- Public Member Functions inherited from PersistableCollectionInterface
 persist ()
 

Protected Attributes

 $itemTableName = 'sys_category'
 
- Protected Attributes inherited from AbstractFileCollection
 $itemsCriteria
 
 $itemTableName = 'sys_file'
 
- Protected Attributes inherited from AbstractRecordCollection
 $uid = 0
 
 $title
 
 $description
 
 $itemTableName
 
 $storage
 

Static Protected Attributes

static $storageTableName = 'sys_file_collection'
 
static $type = 'categories'
 
static $itemsCriteriaField = 'category'
 
- Static Protected Attributes inherited from AbstractFileCollection
static $storageTableName = 'sys_file_collection'
 
static $type
 
static $itemsCriteriaField
 
- Static Protected Attributes inherited from AbstractRecordCollection
static $storageTableName = 'sys_collection'
 
static $storageItemsField = 'items'
 

Additional Inherited Members

- Static Public Member Functions inherited from AbstractRecordCollection
static load ($id, $fillItems=false)
 
static create (array $collectionRecord, $fillItems=false)
 
- Protected Member Functions inherited from AbstractFileCollection
 getPersistableDataArray ()
 
- Protected Member Functions inherited from AbstractRecordCollection
 getPersistableDataArray ()
 
 getItemUidList ($includeTableName=true)
 

Detailed Description

A collection containing a set files belonging to certain categories. This collection is persisted to the database with the accordant category identifiers.

Definition at line 25 of file CategoryBasedFileCollection.php.

Member Function Documentation

loadContents ( )

Populates the content-entries of the collection

Returns
void

Implements PersistableCollectionInterface.

Definition at line 52 of file CategoryBasedFileCollection.php.

References AbstractFileCollection\add(), ResourceFactory\getInstance(), and GeneralUtility\makeInstance().

Member Data Documentation

$itemsCriteriaField = 'category'
staticprotected

Definition at line 40 of file CategoryBasedFileCollection.php.

$itemTableName = 'sys_category'
protected

Definition at line 45 of file CategoryBasedFileCollection.php.

$storageTableName = 'sys_file_collection'
staticprotected

Definition at line 30 of file CategoryBasedFileCollection.php.

$type = 'categories'
staticprotected

Definition at line 35 of file CategoryBasedFileCollection.php.