‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Service\FlexFormService Class Reference
Inheritance diagram for TYPO3\CMS\Core\Service\FlexFormService:
TYPO3\CMS\Core\SingletonInterface

Public Member Functions

array convertFlexFormContentToArray ($flexFormContent, $languagePointer='lDEF', $valuePointer='vDEF')
 
mixed walkFlexFormNode ($nodeArray, $valuePointer='vDEF')
 

Detailed Description

Utilities to process flexForms

Definition at line 24 of file FlexFormService.php.

Member Function Documentation

◆ convertFlexFormContentToArray()

array TYPO3\CMS\Core\Service\FlexFormService::convertFlexFormContentToArray (   $flexFormContent,
  $languagePointer = 'lDEF',
  $valuePointer = 'vDEF' 
)

Parses the flexForm content and converts it to an array The resulting array will be multi-dimensional, as a value "bla.blubb" results in two levels, and a value "bla.blubb.bla" results in three levels.

Note: multi-language flexForms are not supported yet

Parameters
string$flexFormContent‪flexForm xml string
string$languagePointer‪language pointer used in the flexForm
string$valuePointer‪value pointer used in the flexForm
Returns
‪array the processed array

Definition at line 38 of file FlexFormService.php.

References $languages, TYPO3\CMS\Core\Service\FlexFormService\walkFlexFormNode(), and TYPO3\CMS\Core\Utility\GeneralUtility\xml2array().

◆ walkFlexFormNode()

mixed TYPO3\CMS\Core\Service\FlexFormService::walkFlexFormNode (   $nodeArray,
  $valuePointer = 'vDEF' 
)

Parses a flexForm node recursively and takes care of sections etc

Parameters
mixed$nodeArray‪The flexForm node to parse
string$valuePointer‪The valuePointer to use for value retrieval
Returns
‪mixed

Definition at line 78 of file FlexFormService.php.

Referenced by TYPO3\CMS\Core\Service\FlexFormService\convertFlexFormContentToArray().