TYPO3  7.6
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
AbstractFormElement Class Reference
Inheritance diagram for AbstractFormElement:
AbstractNode NodeInterface CheckboxElement GroupElement ImageManipulationElement InputHiddenElement InputTextElement NoneElement RadioElement SelectCheckBoxElement SelectMultipleSideBySideElement SelectSingleBoxElement SelectSingleElement SelectTreeElement TextElement UnknownElement UserElement RsaInputElement 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
 
 $iconFactory
 
- Protected Attributes inherited from AbstractNode
 $data = array()
 

Detailed Description

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

Definition at line 40 of file 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 74 of file AbstractFormElement.php.

References 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 96 of file AbstractFormElement.php.

Referenced by NoneElement\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 802 of file AbstractFormElement.php.

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

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

Definition at line 85 of file AbstractFormElement.php.

Member Data Documentation

$clipboard = null
protected

Definition at line 66 of file AbstractFormElement.php.

$defaultInputWidth = 30
protected

Definition at line 47 of file AbstractFormElement.php.

Referenced by NoneElement\render().

$iconFactory
protected

Definition at line 108 of file AbstractFormElement.php.

$maxInputWidth = 50
protected

Definition at line 61 of file AbstractFormElement.php.

Referenced by TextElement\render().

$minimumInputWidth = 10
protected

Definition at line 54 of file AbstractFormElement.php.