32 public function parseValues($content, array $configuration = NULL) {
33 if (empty($content)) {
37 $values = json_decode($content, TRUE);
39 if (empty($values) || !is_array($values)) {
43 $asPrefix = (!empty($configuration[
'as']) ? $configuration[
'as'] .
':' : NULL);
44 foreach ($values as $identifier => $structure) {
46 $parser->parse($structure);
49 'structure' => $structure,
50 'structurePaths' => $parser->getPaths(),
51 'records' => $parser->getRecords(),
54 $this->
addSection($section, $asPrefix . $identifier);
64 $this->sections[$as] = $section;
66 $this->sections[] = $section;
76 $content = json_encode($this->sections);
84 return \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
85 'TYPO3\\CMS\\Core\\Tests\\Functional\\Framework\\Frontend\\Parser' parseValues($content, array $configuration=NULL)
renderSections($content, array $configuration=NULL)
addSection(array $section, $as=NULL)