TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
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 (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 23 of file core/Classes/Resource/Collection/AbstractFileCollection.php.

Member Function Documentation

add ( FileInterface  $data)
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 170 of file core/Classes/Resource/Collection/AbstractFileCollection.php.

getItemsCriteria ( )

Gets ths items criteria.

Returns
mixed

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

References AbstractFileCollection\$itemsCriteria.

Referenced by AbstractFileCollection\getPersistableDataArray().

getPersistableDataArray ( )
protected

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

Returns
array

Definition at line 117 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 242 of file core/Classes/Resource/Collection/AbstractFileCollection.php.

setDescription (   $description)

Sets the description.

Parameters
string$description

Implements NameableCollectionInterface.

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

References AbstractRecordCollection\$description.

setItemsCriteria (   $itemsCriteria)

Sets the items criteria.

Parameters
mixed$itemsCriteria

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

References AbstractFileCollection\$itemsCriteria.

setTitle (   $title)

Sets the title.

Parameters
string$title

Implements NameableCollectionInterface.

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

References AbstractRecordCollection\$title.

Member Data Documentation

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