TYPO3  7.6
Public Member Functions | Protected Member Functions | List of all members
TcaInline Class Reference
Inheritance diagram for TcaInline:
AbstractDatabaseRecordProvider FormDataProviderInterface

Public Member Functions

 addData (array $result)
 

Protected Member Functions

 addInlineFirstPid (array $result)
 
 resolveRelatedRecords (array $result, $fieldName)
 
 compileCombinationChild (array $intermediate, array $parentConfig)
 
 getWorkspacedUids (array $connectedUids, $childTableName)
 
 getLiveDefaultId ($tableName, $uid)
 
 getBackendUser ()
 
- Protected Member Functions inherited from AbstractDatabaseRecordProvider
 getRecordFromDatabase ($tableName, $uid)
 
 getDatabase ()
 

Detailed Description

Resolve and prepare inline data.

Definition at line 31 of file TcaInline.php.

Member Function Documentation

addData ( array  $result)

Resolve inline fields

Parameters
array$result
Returns
array

Implements FormDataProviderInterface.

Definition at line 39 of file TcaInline.php.

References TcaInline\addInlineFirstPid(), and TcaInline\resolveRelatedRecords().

addInlineFirstPid ( array  $result)
protected

The "entry" pid for inline records. Nested inline records can potentially hang around on different pid's, but the entry pid is needed for AJAX calls, so that they would know where the action takes place on the page structure.

Parameters
array$resultIncoming result
Returns
array Modified result
Todo:
: Find out when and if this is different from 'effectivePid'

Definition at line 65 of file TcaInline.php.

References elseif, BackendUtility\getLiveVersionIdOfRecord(), and BackendUtility\getRecord().

Referenced by TcaInline\addData().

compileCombinationChild ( array  $intermediate,
array  $parentConfig 
)
protected

With useCombination set, not only content of the intermediate table, but also the connected child should be rendered in one go. Prepare this here.

Parameters
array$intermediateFull data array of "mm" record
array$parentConfigTCA configuration of "parent"
Returns
array Full data array of child

Definition at line 311 of file TcaInline.php.

getBackendUser ( )
protected
Returns
BackendUserAuthentication

Definition at line 405 of file TcaInline.php.

References $GLOBALS.

Referenced by TcaInline\getWorkspacedUids().

getLiveDefaultId (   $tableName,
  $uid 
)
protected

Gets the record uid of the live default record. If already pointing to the live record, the submitted record uid is returned.

Parameters
string$tableName
int$uid
Returns
int
Todo:
: the workspace mess still must be resolved somehow

Definition at line 393 of file TcaInline.php.

References BackendUtility\getLiveVersionIdOfRecord().

getWorkspacedUids ( array  $connectedUids,
  $childTableName 
)
protected

Substitute given list of uids in child table with workspace uid if needed

Parameters
array$connectedUidsList of connected uids
string$childTableNameName of child table
Returns
array List of uids in workspace

Definition at line 326 of file TcaInline.php.

References Enumeration\cast(), VersionState\DELETE_PLACEHOLDER, TcaInline\getBackendUser(), BackendUtility\getWorkspaceVersionOfRecord(), and BackendUtility\isTableWorkspaceEnabled().

Referenced by TcaInline\resolveRelatedRecords().

resolveRelatedRecords ( array  $result,
  $fieldName 
)
protected

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

Parameters
array$resultResult array
string$fieldNameCurrent handle field name
Returns
array Modified item array

Definition at line 93 of file TcaInline.php.

References $GLOBALS, elseif, AbstractDatabaseRecordProvider\getRecordFromDatabase(), and TcaInline\getWorkspacedUids().

Referenced by TcaInline\addData().