TYPO3
7.6
|
Public Member Functions | |
addData (array $result) | |
Protected Member Functions | |
createDefaultSheetInDataStructureIfNotGiven (array $result, $fieldName) | |
removeTceFormsArrayKeyFromDataStructureElements (array $result, $fieldName) | |
removeElementTceFormsRecursive (array $structure) | |
migrateFlexformTcaDataStructureElements (array $result, $fieldName) | |
migrateFlexformTcaRecursive ($structure, $table, $fieldName) | |
Prepare flex data structure and data values.
This data provider is typically executed directly after TcaFlexFetch
Definition at line 26 of file TcaFlexPrepare.php.
addData | ( | array | $result | ) |
Resolve flex data structures and prepare flex data values.
Normalize some details to have aligned array nesting for the rest of the processing method and the render engine.
array | $result |
Implements FormDataProviderInterface.
Definition at line 37 of file TcaFlexPrepare.php.
References TcaFlexPrepare\createDefaultSheetInDataStructureIfNotGiven(), TcaFlexPrepare\migrateFlexformTcaDataStructureElements(), and TcaFlexPrepare\removeTceFormsArrayKeyFromDataStructureElements().
|
protected |
Add a sheet structure if data structure has none yet to simplify further handling.
Example TCA field config: ['config']['ds']['ROOT'] becomes ['config']['ds']['sheets']['sDEF']['ROOT']
array | $result | Result array |
string | $fieldName | Currently handled field name |
\UnexpectedValueException |
Definition at line 63 of file TcaFlexPrepare.php.
Referenced by TcaFlexPrepare\addData().
|
protected |
On-the-fly migration for flex form "TCA"
array | $result | Result array |
string | $fieldName | Currently handled field name |
Definition at line 139 of file TcaFlexPrepare.php.
References TcaFlexPrepare\migrateFlexformTcaRecursive().
Referenced by TcaFlexPrepare\addData().
|
protected |
Recursively migrate flex form TCA
array | $structure | Given hierarchy |
string | $table | |
string | $fieldName |
Definition at line 155 of file TcaFlexPrepare.php.
References GeneralUtility\deprecationLog(), and GeneralUtility\makeInstance().
Referenced by TcaFlexPrepare\migrateFlexformTcaDataStructureElements().
|
protected |
Moves ['el']['something']['TCEforms'] to ['el']['something'] and ['ROOT']['TCEforms'] to ['ROOT'] recursive
array | $structure | Given hierarchy |
Definition at line 105 of file TcaFlexPrepare.php.
Referenced by TcaFlexPrepare\removeTceFormsArrayKeyFromDataStructureElements().
|
protected |
Remove "TCEforms" key from all elements in data structure to simplify further parsing.
Example config: ['config']['ds']['sheets']['sDEF']['ROOT']['el']['anElement']['TCEforms']['label'] becomes ['config']['ds']['sheets']['sDEF']['ROOT']['el']['anElement']['label']
array | $result | Result array |
string | $fieldName | Currently handled field name |
Definition at line 91 of file TcaFlexPrepare.php.
References TcaFlexPrepare\removeElementTceFormsRecursive().
Referenced by TcaFlexPrepare\addData().