TcaSiteLanguage

class \TYPO3\CMS\Backend\Form\FormDataProvider\TcaSiteLanguage

Extends
AbstractDatabaseRecordProvider
Implements
FormDataProviderInterface

Resolve and prepare site language 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
addInlineFirstPid()  : array
addInlineRelatedConfig()  : array
addUniquePossibleRecords()  : array
compileChild()  : array
compileDefaultSiteLanguageChild()  : array
getDatabaseRow()  : array
Retrieve the requested row from the database
getDefaultDatabaseRow()  : array
Create the database row for the default site language based on an already existing default language from another site.
getRecordFromDatabase()  : array
Fetch a record from database. Deleted records will NOT be fetched.
initializeAppearance()  : array
initializeMinMaxItems()  : array
resolveSiteLanguageChildren()  : array

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

addInlineFirstPid()

protected addInlineFirstPid(array $result) : array

Parameters

$result : array

Return values

array

addInlineRelatedConfig()

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

Parameters

$result : array
$fieldName : string

Return values

array

addUniquePossibleRecords()

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

Parameters

$result : array
$fieldName : string

Return values

array

compileChild()

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

Parameters

$result : array
$parentFieldName : string
$childUid : int

Return values

array

compileDefaultSiteLanguageChild()

protected compileDefaultSiteLanguageChild(array $result, string $parentFieldName) : array

Parameters

$result : array
$parentFieldName : string

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

getDefaultDatabaseRow()

Create the database row for the default site language based on an already existing default language from another site.

protected getDefaultDatabaseRow() : array

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

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

resolveSiteLanguageChildren()

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

Parameters

$result : array
$fieldName : string

Return values

array
On this page