TcaFlexPrepare implements FormDataProviderInterface

Resolve flex data structure and data values, prepare and normalize.

This is the first data provider in the chain of flex form related providers.

Table of Contents

Interfaces

FormDataProviderInterface
Interface must be implemented by form data provider classes.

Methods

addData()  : array<string|int, mixed>
Resolve flex data structures and prepare flex data values.
initializeDataStructure()  : array<string|int, mixed>
Fetch / initialize data structure.
initializeDataValues()  : array<string|int, mixed>
Parse / initialize value from xml string to array

Methods

addData()

Resolve flex data structures and prepare flex data values.

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

Normalize some details to have aligned array nesting for the rest of the processing method and the render engine.

Parameters
$result : array<string|int, mixed>
Return values
array<string|int, mixed>

initializeDataStructure()

Fetch / initialize data structure.

protected initializeDataStructure(array<string|int, mixed> $result, string $fieldName) : array<string|int, mixed>

The sub array with different possible data structures in ['config']['ds'] is resolved here, ds array contains only the one resolved data structure after this method.

Parameters
$result : array<string|int, mixed>

Result array

$fieldName : string

Currently handled field name

Tags
throws
UnexpectedValueException
Return values
array<string|int, mixed>

Modified result

initializeDataValues()

Parse / initialize value from xml string to array

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

Result array

$fieldName : string

Currently handled field name

Return values
array<string|int, mixed>

Modified result


        
On this page

Search results