FileCollectionRepository

class \TYPO3\CMS\Core\Resource\FileCollectionRepository

Repository for accessing file collections stored in the database

Table of Contents

Properties

$table  : string
$typeField  : string

Methods

findAll()  : AbstractFileCollection[]|null
Finds all record collections.
findByType()  : AbstractFileCollection[]|null
Finds record collection by type.
findByUid()  : AbstractFileCollection|null
Finds a record collection by uid.
createDomainObject()  : AbstractFileCollection
Creates a record collection domain object.
createMultipleDomainObjects()  : AbstractRecordCollection[]
Creates multiple record collection domain objects.
getEnvironmentMode()  : string
Function to return the current application (FE/BE) based on $GLOBALS[TSFE].
getFileFactory()  : ResourceFactory
Gets the file factory.
queryMultipleRecords()  : AbstractFileCollection[]|null
Queries for multiple records for the given conditions.

Properties

$table

protected string $table = 'sys_file_collection'

$typeField

protected string $typeField = 'type'

Methods

getEnvironmentMode()

Function to return the current application (FE/BE) based on $GLOBALS[TSFE].

protected getEnvironmentMode() : string

This function can be mocked in unit tests to be able to test frontend behaviour.

Return values

string

queryMultipleRecords()

Queries for multiple records for the given conditions.

protected queryMultipleRecords([array $conditions = [] ]) : AbstractFileCollection[]|null

Parameters

$conditions : array = []

Conditions concatenated with AND for query

Return values

AbstractFileCollection[]|null
On this page