![]() |
TYPO3
7.6
|
Public Member Functions | |
__construct (NodeFactory $nodeFactory, array $data) | |
render () | |
Protected Member Functions | |
initializeResultArray () | |
mergeChildReturnIntoExistingResult (array $existing, array $childReturn) | |
getValidationDataAsDataAttribute (array $config) | |
getValidationDataAsJsonString (array $config) | |
Protected Attributes | |
$data = array() | |
Base class for container and single elements - their abstracts extend from here.
Definition at line 23 of file backend/Classes/Form/AbstractNode.php.
__construct | ( | NodeFactory | $nodeFactory, |
array | $data | ||
) |
Set data to data array.
: Should NOT set the nodeFactory instance, this is done by AbstractContainer only,
: but not done for Element classes: Elements are tree leaves, they MUST
: not create new nodes again.
: Currently, AbstractFormElement still does that, but do not rely on the fact that
: Element classes have an instance of NodeFactory at hand.
NodeFactory | $nodeFactory | |
array | $data |
Implements NodeInterface.
Definition at line 44 of file backend/Classes/Form/AbstractNode.php.
References AbstractNode\$data.
|
protected |
Build JSON string for validations rules and return it as data attribute for HTML elements.
array | $config |
Definition at line 126 of file backend/Classes/Form/AbstractNode.php.
References AbstractNode\getValidationDataAsJsonString().
Referenced by SelectMultipleSideBySideElement\render(), SelectTreeElement\render(), and SelectSingleBoxElement\renderSelectElement().
|
protected |
Build JSON string for validations rules.
array | $config |
Definition at line 137 of file backend/Classes/Form/AbstractNode.php.
References GeneralUtility\trimExplode().
Referenced by AbstractNode\getValidationDataAsDataAttribute(), RsaInputElement\render(), and TextElement\render().
|
protected |
Initialize the array that is returned to parent after calling. This structure is identical for all nodes. Parent will merge the return of a child with its own stuff and in itself return an array of the same structure.
Definition at line 63 of file backend/Classes/Form/AbstractNode.php.
Referenced by InputHiddenElement\render(), UnknownElement\render(), RadioElement\render(), CheckboxElement\render(), UserElement\render(), NoneElement\render(), FlexFormNoTabsContainer\render(), FlexFormTabsContainer\render(), RsaInputElement\render(), SelectMultipleSideBySideElement\render(), TabsContainer\render(), SelectSingleBoxElement\render(), FlexFormContainerContainer\render(), SelectCheckBoxElement\render(), SoloFieldContainer\render(), FlexFormElementContainer\render(), TextElement\render(), PaletteAndSingleContainer\render(), SelectTreeElement\render(), ImageManipulationElement\render(), InlineRecordContainer\render(), T3editorElement\render(), RichTextElement\render(), and InlineRecordContainer\renderCombinationChild().
|
protected |
Merge existing data with a child return array
array | $existing | Currently merged array |
array | $childReturn | Array returned by child |
Definition at line 85 of file backend/Classes/Form/AbstractNode.php.
References ArrayUtility\mergeRecursiveWithOverrule().
Referenced by PaletteAndSingleContainer\createPaletteContentArray(), FlexFormTabsContainer\render(), TabsContainer\render(), FlexFormContainerContainer\render(), FlexFormElementContainer\render(), PaletteAndSingleContainer\render(), InlineRecordContainer\render(), and InlineRecordContainer\renderCombinationChild().
|
abstract |
Handler for single nodes
Implements NodeInterface.
|
protected |
Definition at line 30 of file backend/Classes/Form/AbstractNode.php.
Referenced by AbstractNode\__construct(), PaletteAndSingleContainer\createPaletteContentArray(), FlexFormEntryContainer\render(), NoTabsContainer\render(), FlexFormNoTabsContainer\render(), FlexFormTabsContainer\render(), RsaInputElement\render(), ListOfFieldsContainer\render(), TabsContainer\render(), FullRecordContainer\render(), FlexFormContainerContainer\render(), SoloFieldContainer\render(), FlexFormElementContainer\render(), OuterWrapContainer\render(), TextElement\render(), PaletteAndSingleContainer\render(), and InlineRecordContainer\render().