TYPO3  7.6
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
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 (\TYPO3\CMS\Core\Resource\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 Member Functions

 getDatabaseConnection ()
 
- Protected Member Functions inherited from AbstractFileCollection
 getPersistableDataArray ()
 
- Protected Member Functions inherited from AbstractRecordCollection
 getPersistableDataArray ()
 
 getItemUidList ($includeTableName=true)
 

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)
 

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 21 of file CategoryBasedFileCollection.php.

Member Function Documentation

getDatabaseConnection ( )
protected

Gets the database object.

Returns

Definition at line 73 of file CategoryBasedFileCollection.php.

References $GLOBALS.

Referenced by CategoryBasedFileCollection\loadContents().

loadContents ( )

Populates the content-entries of the collection

Returns
void

Implements PersistableCollectionInterface.

Definition at line 48 of file CategoryBasedFileCollection.php.

References AbstractFileCollection\add(), CategoryBasedFileCollection\getDatabaseConnection(), and AbstractFileCollection\getItemsCriteria().

Member Data Documentation

$itemsCriteriaField = 'category'
staticprotected

Definition at line 36 of file CategoryBasedFileCollection.php.

$itemTableName = 'sys_category'
protected

Definition at line 41 of file CategoryBasedFileCollection.php.

$storageTableName = 'sys_file_collection'
staticprotected

Definition at line 26 of file CategoryBasedFileCollection.php.

$type = 'categories'
staticprotected

Definition at line 31 of file CategoryBasedFileCollection.php.