![]() |
TYPO3
7.6
|
Public Member Functions | |
convert (array $typoscript) | |
addElement (AbstractJsonElement $parentElement, $class, array $arguments) | |
Protected Member Functions | |
getChildElementsByIntegerKey (AbstractJsonElement $parentElement, array $typoscript) | |
setValidationRules (array $typoscript) | |
addValidationRules (array &$arguments) | |
Protected Attributes | |
$registeredElementNames | |
$nameMapping | |
$validationRules | |
Private Member Functions | |
setElementType (AbstractJsonElement $parentElement, $class, array $arguments) | |
Typoscript to JSON converter
Takes the incoming TypoScript and converts it to JSON.
Definition at line 25 of file TypoScriptToJsonConverter.php.
addElement | ( | AbstractJsonElement | $parentElement, |
$class, | |||
array | $arguments | ||
) |
Add child object to this element
AbstractJsonElement | $parentElement | The parent object |
string | $class | Type of element |
array | $arguments | Configuration array |
Definition at line 161 of file TypoScriptToJsonConverter.php.
Referenced by TypoScriptToJsonConverter\setElementType().
|
protected |
Add validation rules to an element if available
In TypoScript the validation rules belong to the form and are connected to the elements by name. However, in the wizard, they are added to the element for usability
array | $arguments | The element arguments |
Definition at line 197 of file TypoScriptToJsonConverter.php.
convert | ( | array | $typoscript | ) |
Convert TypoScript string to JSON
array | $typoscript | TypoScript string containing all configuration for the form |
Definition at line 68 of file TypoScriptToJsonConverter.php.
References TypoScriptToJsonConverter\setValidationRules().
|
protected |
Rendering of a "numerical array" of Form objects from TypoScript Creates new object for each element found
AbstractJsonElement | $parentElement | Parent model object |
array | $typoscript | Configuration array |
Definition at line 114 of file TypoScriptToJsonConverter.php.
References TypoScriptToJsonConverter\setElementType().
|
private |
Set the element type of the object
Checks if the typoscript object is part of the FORM or has a predefined class for name or header object
AbstractJsonElement | $parentElement | The parent object |
string | $class | A predefined class |
array | $arguments | Configuration array |
Definition at line 143 of file TypoScriptToJsonConverter.php.
References TypoScriptToJsonConverter\addElement().
Referenced by TypoScriptToJsonConverter\getChildElementsByIntegerKey().
|
protected |
Set the validation rules
array | $typoscript | Configuration array |
Definition at line 180 of file TypoScriptToJsonConverter.php.
Referenced by TypoScriptToJsonConverter\convert().
|
protected |
Definition at line 52 of file TypoScriptToJsonConverter.php.
|
protected |
Definition at line 27 of file TypoScriptToJsonConverter.php.
|
protected |
Definition at line 60 of file TypoScriptToJsonConverter.php.