TYPO3
7.6
|
Public Member Functions | |
addData (array $result) | |
Protected Member Functions | |
initializeDataStructure (array $result, $fieldName) | |
initializeDataValues (array $result, $fieldName) | |
resolvePossibleExternalFileInDataStructure (array $result, $fieldName) | |
Resolve and flex data structure and data values.
This is the first data provider in the chain of flex form related providers.
Definition at line 26 of file TcaFlexFetch.php.
addData | ( | array | $result | ) |
Resolve ds pointer stuff and parse both ds and dv
array | $result |
Implements FormDataProviderInterface.
Definition at line 34 of file TcaFlexFetch.php.
References TcaFlexFetch\initializeDataStructure(), TcaFlexFetch\initializeDataValues(), and TcaFlexFetch\resolvePossibleExternalFileInDataStructure().
|
protected |
Fetch / initialize data structure.
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.
array | $result | Result array |
string | $fieldName | Currently handled field name |
\UnexpectedValueException |
Definition at line 59 of file TcaFlexFetch.php.
References BackendUtility\getFlexFormDS().
Referenced by TcaFlexFetch\addData().
|
protected |
Parse / initialize value from xml string to array
array | $result | Result array |
string | $fieldName | Currently handled field name |
Definition at line 90 of file TcaFlexFetch.php.
References GeneralUtility\xml2array().
Referenced by TcaFlexFetch\addData().
|
protected |
Single fields can be extracted to files again. This is resolved and parsed here.
: Why is this not done in BackendUtility::getFlexFormDS() directly? If done there, the two methods
: GeneralUtility::resolveSheetDefInDS() and GeneralUtility::resolveAllSheetsInDS() could be killed
: since this resolving is basically the only really useful thing they actually do.
array | $result | Result array |
string | $fieldName | Current handle field name |
Definition at line 126 of file TcaFlexFetch.php.
References GeneralUtility\getFileAbsFileName(), GeneralUtility\getUrl(), and GeneralUtility\xml2array().
Referenced by TcaFlexFetch\addData().