SiteTcaInline

class \TYPO3\CMS\Backend\Form\FormDataProvider\SiteTcaInline

Extends
AbstractDatabaseRecordProvider
Implements
FormDataProviderInterface

Special data provider for the sites configuration module.

Handle inline children of 'site'

Table of Contents

Interfaces

FormDataProviderInterface
Interface must be implemented by form data provider classes.

Methods

__construct()  : mixed
addData()  : array
Resolve inline fields
injectConnectionPool()  : void
addInlineFirstPid()  : array
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.
compileChild()  : array
Compile a full child record
getDatabaseRow()  : array
Retrieve the requested row from the database
getRecordFromDatabase()  : array
Fetch a record from database. Deleted records will NOT be fetched.
isInlineField()  : bool
Is column of type "inline"
resolveSiteRelatedChildren()  : 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.

Methods

addData()

Resolve inline fields

public addData(array $result) : array

Parameters

$result : array

Initialized result array

Return values

array —

Result filled with more data

addInlineFirstPid()

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.

protected addInlineFirstPid(array $result) : array

Parameters

$result : array

Incoming result

Tags

todo:

Find out when and if this is different from 'effectivePid'

Return values

array —

Modified result

compileChild()

Compile a full child record

protected compileChild(array $result, string $parentFieldName, int $childUid) : array

Parameters

$result : array

Result array of parent

$parentFieldName : string

Name of parent field

$childUid : int

Uid of child to compile

Return values

array —

Full result 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

isInlineField()

Is column of type "inline"

protected isInlineField(array $fieldConfig) : bool

Parameters

$fieldConfig : array

Return values

bool

resolveSiteRelatedChildren()

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 resolveSiteRelatedChildren(array $result, string $fieldName) : array

Parameters

$result : array

Result array

$fieldName : string

Current handle field name

Return values

array —

Modified item array

On this page