TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
AbstractFormElement Class Reference
Inheritance diagram for AbstractFormElement:
AbstractNode NodeInterface CheckboxElement GroupElement ImageManipulationElement InputColorPickerElement InputHiddenElement InputTextElement NoneElement RadioElement SelectCheckBoxElement SelectMultipleSideBySideElement SelectSingleBoxElement SelectSingleElement SelectTreeElement TextElement UnknownElement UserElement BackendLayoutWizardElement RsaInputElement RichTextElement RichTextElement T3editorElement

Public Member Functions

 __construct (NodeFactory $nodeFactory, array $data)
 
- Public Member Functions inherited from AbstractNode
 __construct (NodeFactory $nodeFactory, array $data)
 
 render ()
 

Protected Member Functions

 isWizardsDisabled ()
 
 formMaxWidth ($size=48)
 
 getClipboardElements ($allowed, $mode)
 
 getLanguageService ()
 
- Protected Member Functions inherited from AbstractNode
 initializeResultArray ()
 
 mergeChildReturnIntoExistingResult (array $existing, array $childReturn)
 
 getValidationDataAsDataAttribute (array $config)
 
 getValidationDataAsJsonString (array $config)
 

Protected Attributes

 $defaultInputWidth = 30
 
 $minimumInputWidth = 10
 
 $maxInputWidth = 50
 
 $clipboard = null
 
 $nodeFactory
 
 $iconFactory
 
- Protected Attributes inherited from AbstractNode
 $data = []
 

Detailed Description

Base class for form elements of FormEngine. Contains several helper methods used by single elements.

Definition at line 40 of file backend/Classes/Form/Element/AbstractFormElement.php.

Constructor & Destructor Documentation

__construct ( NodeFactory  $nodeFactory,
array  $data 
)

Container objects give $nodeFactory down to other containers.

Parameters
NodeFactory$nodeFactory
array$data

Implements NodeInterface.

Definition at line 79 of file backend/Classes/Form/Element/AbstractFormElement.php.

References AbstractFormElement\$nodeFactory, and GeneralUtility\makeInstance().

Member Function Documentation

formMaxWidth (   $size = 48)
protected

Returns the max width in pixels for an elements like input and text

Parameters
int$sizeThe abstract size value (1-48)
Returns
int Maximum width in pixels

Definition at line 101 of file backend/Classes/Form/Element/AbstractFormElement.php.

Referenced by NoneElement\render(), InputColorPickerElement\render(), InputTextElement\render(), RsaInputElement\render(), SelectSingleBoxElement\render(), and TextElement\render().

getClipboardElements (   $allowed,
  $mode 
)
protected

Returns array of elements from clipboard to insert into GROUP element box.

Parameters
string$allowedAllowed elements, Eg "pages,tt_content", "gif,jpg,jpeg,png @param string $mode Mode of relations: "db" or "file
Returns
array Array of elements in values (keys are insignificant), if none found, empty array.

Definition at line 779 of file backend/Classes/Form/Element/AbstractFormElement.php.

References GeneralUtility\makeInstance(), and GeneralUtility\trimExplode().

isWizardsDisabled ( )
protected
Returns
bool TRUE if wizards are disabled on a global level

Definition at line 90 of file backend/Classes/Form/Element/AbstractFormElement.php.

Member Data Documentation

$clipboard = null
protected
$defaultInputWidth = 30
protected
$iconFactory
protected
$maxInputWidth = 50
protected
$minimumInputWidth = 10
protected
$nodeFactory
protected