TcaFlexPrepare
readonly class \
- 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
- __construct() : mixed
- addData() : array
- Resolve flex data structures and prepare flex data values.
- initializeDataStructure() : array
- Fetch / initialize data structure.
- initializeDataValues() : array
- Parse / initialize value from xml string to array
Methods
__construct()
public
__construct(FlexFormTools $flexFormTools) : mixed
Parameters
- $flexFormTools : FlexFormTools
addData()
Resolve flex data structures and prepare flex data values.
public
addData(array $result) : array
Normalize some details to have aligned array nesting for the rest of the processing method and the render engine.
Parameters
- $result : array
-
Initialized result array
Return values
array —Result filled with more data
initializeDataStructure()
Fetch / initialize data structure.
protected
initializeDataStructure(array $result, string $fieldName) : array
The data structures in ['config']['ds'] is initialized here and the dataStructureIdentifier is set.
Parameters
- $result : array
- $fieldName : string
Return values
arrayinitializeDataValues()
Parse / initialize value from xml string to array
protected
initializeDataValues(array $result, string $fieldName) : array
Parameters
- $result : array
- $fieldName : string