TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Extbase\Service\FlexFormService Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Service\FlexFormService:
TYPO3\CMS\Core\SingletonInterface Tx_Extbase_Service_FlexFormService

Public Member Functions

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

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Utilities to process flexForms

Definition at line 19 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 33 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 72 of file FlexFormService.php.

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