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<string|int, mixed>
Add form data to result array
injectConnectionPool()  : void
compileFileReference()  : array<string|int, mixed>
getBackendUser()  : BackendUserAuthentication
getDatabaseRow()  : array<string|int, mixed>
Retrieve the requested row from the database
getLanguageService()  : LanguageService
getRecordFromDatabase()  : array<string|int, mixed>
Fetch a record from database. Deleted records will NOT be fetched.
getSubstitutedWorkspacedUids()  : array<string|int, int>
Substitute given list of uids with corresponding workspace uids - if needed
initializeAppearance()  : array<string|int, mixed>
initializeMinMaxItems()  : array<string|int, mixed>
initializeParentSysLanguageUid()  : array<string|int, mixed>
resolveFileReferenceOverlays()  : array<string|int, mixed>
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<string|int, mixed>
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()  : array<string|int, int>
Resolve file reference uids using the RelationHandler

Methods

addData()

Add form data to result array

public addData(array<string|int, mixed> $result) : array<string|int, mixed>
Parameters
$result : array<string|int, mixed>

Initialized result array

Return values
array<string|int, mixed>

Result filled with more data

compileFileReference()

protected compileFileReference(array<string|int, mixed> $result, string $parentFieldName, int $childUid[, mixed $isInlineDefaultLanguageRecordInLocalizedParentContext = false ]) : array<string|int, mixed>
Parameters
$result : array<string|int, mixed>
$parentFieldName : string
$childUid : int
$isInlineDefaultLanguageRecordInLocalizedParentContext : mixed = false
Return values
array<string|int, mixed>

getDatabaseRow()

Retrieve the requested row from the database

protected getDatabaseRow(string $tableName, int $uid) : array<string|int, mixed>
Parameters
$tableName : string
$uid : int
Return values
array<string|int, mixed>

getRecordFromDatabase()

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

protected getRecordFromDatabase(string $tableName, int $uid) : array<string|int, mixed>

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<string|int, mixed>

Fetched record row

getSubstitutedWorkspacedUids()

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

protected getSubstitutedWorkspacedUids(array<string|int, int> $connectedUids) : array<string|int, int>
Parameters
$connectedUids : array<string|int, int>

List of file reference uids

Return values
array<string|int, int>

List of substituted uids

initializeAppearance()

protected initializeAppearance(array<string|int, mixed> $result, string $fieldName) : array<string|int, mixed>
Parameters
$result : array<string|int, mixed>
$fieldName : string
Return values
array<string|int, mixed>

initializeMinMaxItems()

protected initializeMinMaxItems(array<string|int, mixed> $result, string $fieldName) : array<string|int, mixed>
Parameters
$result : array<string|int, mixed>
$fieldName : string
Return values
array<string|int, mixed>

initializeParentSysLanguageUid()

protected initializeParentSysLanguageUid(array<string|int, mixed> $result, string $fieldName) : array<string|int, mixed>
Parameters
$result : array<string|int, mixed>
$fieldName : string
Return values
array<string|int, mixed>

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<string|int, mixed> $result, string $fieldName) : array<string|int, mixed>
Parameters
$result : array<string|int, mixed>
$fieldName : string
Return values
array<string|int, mixed>

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<string|int, mixed> $result, string $fieldName) : array<string|int, mixed>
Parameters
$result : array<string|int, mixed>
$fieldName : string
Return values
array<string|int, mixed>

resolveFileReferenceUids()

Resolve file reference uids using the RelationHandler

protected resolveFileReferenceUids(array<string|int, mixed> $parentConfig, mixed $parentTableName, mixed $parentUid, mixed $parentFieldValue) : array<string|int, int>
Parameters
$parentConfig : array<string|int, mixed>
$parentTableName : mixed
$parentUid : mixed
$parentFieldValue : mixed
Return values
array<string|int, int>

        
On this page

Search results