TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Extbase\Service\FlexFormService Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Service\FlexFormService:
TYPO3\CMS\Core\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()

TYPO3\CMS\Extbase\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$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 TYPO3\CMS\Extbase\Service\FlexFormService\walkFlexFormNode(), and TYPO3\CMS\Core\Utility\GeneralUtility\xml2array().

◆ walkFlexFormNode()

TYPO3\CMS\Extbase\Service\FlexFormService::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.

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