TcaFiles
class \
- 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
__construct()
public
__construct(InlineStackProcessor $inlineStackProcessor, LoggerInterface $logger) : mixed
Parameters
- $inlineStackProcessor : InlineStackProcessor
- $logger : LoggerInterface
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
injectConnectionPool()
public
injectConnectionPool(ConnectionPool $connectionPool) : void
Parameters
- $connectionPool : ConnectionPool
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
arraygetBackendUser()
protected
getBackendUser() : BackendUserAuthentication
Return values
BackendUserAuthenticationgetDatabaseRow()
Retrieve the requested row from the database
protected
getDatabaseRow(string $tableName, int $uid) : array
Parameters
- $tableName : string
- $uid : int
Return values
arraygetLanguageService()
protected
getLanguageService() : LanguageService
Return values
LanguageServicegetRecordFromDatabase()
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
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
arrayinitializeMinMaxItems()
protected
initializeMinMaxItems(array $result, string $fieldName) : array
Parameters
- $result : array
- $fieldName : string
Return values
arrayinitializeParentSysLanguageUid()
protected
initializeParentSysLanguageUid(array $result, string $fieldName) : array
Parameters
- $result : array
- $fieldName : string
Return values
arrayresolveFileReferenceOverlays()
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
arrayresolveFileReferences()
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
arrayresolveFileReferenceUids()
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