TYPO3  7.6
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
AbstractFileCollection Class Reference
Inheritance diagram for AbstractFileCollection:
AbstractRecordCollection RecordCollectionInterface PersistableCollectionInterface SortableCollectionInterface CollectionInterface NameableCollectionInterface CategoryBasedFileCollection FolderBasedFileCollection StaticFileCollection

Public Member Functions

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

Protected Member Functions

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

Protected Attributes

 $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
 
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

Abstract collection.

Definition at line 20 of file core/Classes/Resource/Collection/AbstractFileCollection.php.

Member Function Documentation

Adds a file to this collection.

Parameters
\TYPO3\CMS\Core\Resource\FileInterface$data

Definition at line 200 of file core/Classes/Resource/Collection/AbstractFileCollection.php.

Referenced by CategoryBasedFileCollection\loadContents(), and FolderBasedFileCollection\loadContents().

fromArray ( array  $array)

Similar to method in , but without $this->itemTableName= $array['table_name'], but with $this->storageItemsFieldContent = $array[self::$storageItemsField];

Parameters
array$array

Definition at line 167 of file core/Classes/Resource/Collection/AbstractFileCollection.php.

getItemsCriteria ( )
getPersistableDataArray ( )
protected

Returns an array of the persistable properties and contents which are processable by TCEmain.

Returns
array

Definition at line 114 of file core/Classes/Resource/Collection/AbstractFileCollection.php.

References AbstractRecordCollection\getDescription(), AbstractFileCollection\getItemsCriteria(), and AbstractRecordCollection\getTitle().

removeAll ( )

Removes all elements of the current collection.

Definition at line 239 of file core/Classes/Resource/Collection/AbstractFileCollection.php.

setDescription (   $description)

Sets the description.

Parameters
string$description

Implements NameableCollectionInterface.

Definition at line 65 of file core/Classes/Resource/Collection/AbstractFileCollection.php.

References AbstractRecordCollection\$description.

setItemsCriteria (   $itemsCriteria)

Sets the items criteria.

Parameters
mixed$itemsCriteria

Definition at line 190 of file core/Classes/Resource/Collection/AbstractFileCollection.php.

References AbstractFileCollection\$itemsCriteria.

setTitle (   $title)

Sets the title.

Parameters
string$title

Implements NameableCollectionInterface.

Definition at line 75 of file core/Classes/Resource/Collection/AbstractFileCollection.php.

References AbstractRecordCollection\$title.

Member Data Documentation

$itemsCriteria
protected
$itemsCriteriaField
staticprotected
$itemTableName = 'sys_file'
protected
$storageTableName = 'sys_file_collection'
staticprotected
$type
staticprotected