TYPO3  7.6
Public Member Functions | List of all members
FlexFormService Class Reference
Inheritance diagram for FlexFormService:
SingletonInterface

Public Member Functions

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

Detailed Description

Utilities to process flexForms

Definition at line 20 of file FlexFormService.php.

Member Function Documentation

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$flexFormContentflexForm xml string
string$languagePointerlanguage pointer used in the flexForm
string$valuePointervalue pointer used in the flexForm
Returns
array the processed array

Definition at line 34 of file FlexFormService.php.

References FlexFormService\walkFlexFormNode().

walkFlexFormNode (   $nodeArray,
  $valuePointer = 'vDEF' 
)

Parses a flexForm node recursively and takes care of sections etc

Parameters
array$nodeArrayThe flexForm node to parse
string$valuePointerThe valuePointer to use for value retrieval
Returns
array

Definition at line 74 of file FlexFormService.php.

References elseif.

Referenced by FlexFormService\convertFlexFormContentToArray().