TcaFiles

class \TYPO3\CMS\Backend\Form\FormDataProvider\TcaFiles

Extends
AbstractDatabaseRecordProvider
Implements
FormDataProviderInterface

Resolve and prepare files data.

Table of Contents

Interfaces

FormDataProviderInterface
Interface must be implemented by form data provider classes.

Methods

__construct()  : mixed
addData()  : array
Add form data to result array
injectConnectionPool()  : void
compileFileReference()  : array
getBackendUser()  : BackendUserAuthentication
getDatabaseRow()  : array
Retrieve the requested row from the database
getLanguageService()  : LanguageService
getRecordFromDatabase()  : array
Fetch a record from database. Deleted records will NOT be fetched.
getSubstitutedWorkspacedUids()  : int[]
Substitute given list of uids with corresponding workspace uids - if needed
initializeAppearance()  : array
initializeMinMaxItems()  : array
initializeParentSysLanguageUid()  : array
resolveFileReferenceOverlays()  : array
Substitute the value in databaseRow of this file field with an array that contains the databaseRows of currently connected file references and some meta information.
resolveFileReferences()  : array
Substitute the value in databaseRow of this inline field with an array that contains the databaseRows of currently connected records and some meta information.
resolveFileReferenceUids()  : int[]
Resolve file reference uids using the RelationHandler

Methods

addData()

Add form data to result array

public addData(array $result) : array

Parameters

$result : array

Initialized result array

Return values

array —

Result filled with more data

compileFileReference()

protected compileFileReference(array $result, string $parentFieldName, int $childUid[, mixed $isInlineDefaultLanguageRecordInLocalizedParentContext = false ]) : array

Parameters

$result : array
$parentFieldName : string
$childUid : int
$isInlineDefaultLanguageRecordInLocalizedParentContext : mixed = false

Return values

array

getDatabaseRow()

Retrieve the requested row from the database

protected getDatabaseRow(string $tableName, int $uid) : array

Parameters

$tableName : string
$uid : int

Return values

array

getRecordFromDatabase()

Fetch a record from database. Deleted records will NOT be fetched.

protected getRecordFromDatabase(string $tableName, int $uid) : array

Method is similar to BackendUtility::getRecord, but is more picky about input and result.

Parameters

$tableName : string

The table name to fetch record from

$uid : int

Uid of record to fetch

Tags

throws
DatabaseRecordException|InvalidArgumentException|UnexpectedValueException|RuntimeException

Return values

array —

Fetched record row

getSubstitutedWorkspacedUids()

Substitute given list of uids with corresponding workspace uids - if needed

protected getSubstitutedWorkspacedUids(int[] $connectedUids, TcaSchema $fileReferenceSchema) : int[]

Parameters

$connectedUids : int[]

List of file reference uids

$fileReferenceSchema : TcaSchema

Return values

int[] —

List of substituted uids

initializeAppearance()

protected initializeAppearance(array $result, string $fieldName) : array

Parameters

$result : array
$fieldName : string

Return values

array

initializeMinMaxItems()

protected initializeMinMaxItems(array $result, string $fieldName) : array

Parameters

$result : array
$fieldName : string

Return values

array

initializeParentSysLanguageUid()

protected initializeParentSysLanguageUid(array $result, string $fieldName) : array

Parameters

$result : array
$fieldName : string

Return values

array

resolveFileReferenceOverlays()

Substitute the value in databaseRow of this file field with an array that contains the databaseRows of currently connected file references and some meta information.

protected resolveFileReferenceOverlays(array $result, string $fieldName) : array

Parameters

$result : array
$fieldName : string

Return values

array

resolveFileReferences()

Substitute the value in databaseRow of this inline field with an array that contains the databaseRows of currently connected records and some meta information.

protected resolveFileReferences(array $result, string $fieldName) : array

Parameters

$result : array
$fieldName : string

Return values

array

resolveFileReferenceUids()

Resolve file reference uids using the RelationHandler

protected resolveFileReferenceUids(array $parentConfig, mixed $parentTableName, mixed $parentUid, mixed $parentFieldValue) : int[]

Parameters

$parentConfig : array
$parentTableName : mixed
$parentUid : mixed
$parentFieldValue : mixed

Return values

int[]
On this page