‪TYPO3CMS  9.5
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')
 
array walkFlexFormNode ($nodeArray, $valuePointer='vDEF')
 

Detailed Description

Utilities to process flexForms

Definition at line 20 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 34 of file FlexFormService.php.

References TYPO3\CMS\Core\Service\FlexFormService\walkFlexFormNode().

◆ walkFlexFormNode()

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

Parses a flexForm node recursively and takes care of sections etc

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

Definition at line 74 of file FlexFormService.php.

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