‪TYPO3CMS  ‪main
TYPO3\CMS\Form\Domain\Model\FormElements\UnknownFormElement Class Reference
Inheritance diagram for TYPO3\CMS\Form\Domain\Model\FormElements\UnknownFormElement:
TYPO3\CMS\Form\Domain\Model\Renderable\AbstractRenderable TYPO3\CMS\Form\Domain\Model\FormElements\FormElementInterface TYPO3\CMS\Form\Domain\Model\Renderable\RenderableInterface TYPO3\CMS\Form\Domain\Model\Renderable\VariableRenderableInterface TYPO3\CMS\Form\Domain\Model\Renderable\RenderableInterface TYPO3\CMS\Form\Domain\Model\Renderable\RootRenderableInterface TYPO3\CMS\Form\Domain\Model\Renderable\RootRenderableInterface

Public Member Functions

 __construct (string $identifier, string $type)
 
 initializeFormElement ()
 
string getUniqueIdentifier ()
 
 getTemplateName ()
 
mixed getDefaultValue ()
 
 setDefaultValue ($defaultValue)
 
 setProperty (string $key, $value)
 
 getProperties ()
 
 isRequired ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Form\Domain\Model\Renderable\AbstractRenderable
 getType ()
 
 getIdentifier ()
 
 setIdentifier (string $identifier)
 
 setOptions (array $options, bool $resetValidators=false)
 
 createValidator (string $validatorIdentifier, array $options=[])
 
 addValidator (ValidatorInterface $validator)
 
 getValidators ()
 
 setDataType (string $dataType)
 
 getRendererClassName ()
 
 getRenderingOptions ()
 
mixed setRenderingOption (string $key, $value)
 
CompositeRenderableInterface null getParentRenderable ()
 
 setParentRenderable (CompositeRenderableInterface $parentRenderable)
 
 getRootForm ()
 
 registerInFormIfPossible ()
 
 onRemoveFromParentRenderable ()
 
 getIndex ()
 
 setIndex (int $index)
 
 getLabel ()
 
 setLabel (string $label)
 
 isEnabled ()
 
RenderableVariantInterface[] getVariants ()
 
 createVariant (array $options)
 
 addVariant (RenderableVariantInterface $variant)
 
 applyVariant (RenderableVariantInterface $variant)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Form\Domain\Model\FormElements\FormElementInterface
 setRenderingOption (string $key, $value)
 
SplObjectStorage< ValidatorInterfacegetValidators ()
 
 addValidator (ValidatorInterface $validator)
 
 setDataType (string $dataType)
 

Additional Inherited Members

- ‪Protected Attributes inherited from ‪TYPO3\CMS\Form\Domain\Model\Renderable\AbstractRenderable
string $type
 
string $identifier
 
CompositeRenderableInterface null $parentRenderable
 
string $label = ''
 
array $renderingOptions = array( )
 
int $index = 0
 
string $templateName = ''
 
array $variants = array( )
 
ValidatorResolver $validatorResolver = null
 

Detailed Description

A Form Element that has no definition.

Scope: frontend

Definition at line 33 of file UnknownFormElement.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Form\Domain\Model\FormElements\UnknownFormElement::__construct ( string  $identifier,
string  $type 
)

Constructor. Needs this FormElement's identifier and the FormElement type

Parameters
string$identifier‪The FormElement's identifier
string$type‪The Form Element Type
Exceptions
IdentifierNotValidException

Definition at line 42 of file UnknownFormElement.php.

References TYPO3\CMS\Form\Domain\Model\Renderable\AbstractRenderable\$identifier, and TYPO3\CMS\Form\Domain\Model\Renderable\AbstractRenderable\$type.

Member Function Documentation

◆ getDefaultValue()

mixed TYPO3\CMS\Form\Domain\Model\FormElements\UnknownFormElement::getDefaultValue ( )
Returns
‪mixed the default value for this Form Element

Implements TYPO3\CMS\Form\Domain\Model\FormElements\FormElementInterface.

Definition at line 93 of file UnknownFormElement.php.

◆ getProperties()

TYPO3\CMS\Form\Domain\Model\FormElements\UnknownFormElement::getProperties ( )

◆ getTemplateName()

TYPO3\CMS\Form\Domain\Model\FormElements\UnknownFormElement::getTemplateName ( )

Get the template name of the renderable

Reimplemented from TYPO3\CMS\Form\Domain\Model\Renderable\AbstractRenderable.

Definition at line 84 of file UnknownFormElement.php.

◆ getUniqueIdentifier()

string TYPO3\CMS\Form\Domain\Model\FormElements\UnknownFormElement::getUniqueIdentifier ( )

Returns a unique identifier of this element. While element identifiers are only unique within one form, this includes the identifier of the form itself, making it "globally" unique

Returns
‪string the "globally" unique identifier of this element

Implements TYPO3\CMS\Form\Domain\Model\FormElements\FormElementInterface.

Definition at line 73 of file UnknownFormElement.php.

References TYPO3\CMS\Form\Domain\Model\Renderable\AbstractRenderable\getRootForm().

◆ initializeFormElement()

TYPO3\CMS\Form\Domain\Model\FormElements\UnknownFormElement::initializeFormElement ( )

Sets up the form element

Implements TYPO3\CMS\Form\Domain\Model\FormElements\FormElementInterface.

Definition at line 54 of file UnknownFormElement.php.

References $GLOBALS.

◆ isRequired()

TYPO3\CMS\Form\Domain\Model\FormElements\UnknownFormElement::isRequired ( )

◆ setDefaultValue()

TYPO3\CMS\Form\Domain\Model\FormElements\UnknownFormElement::setDefaultValue (   $defaultValue)

Not used in this implementation

Parameters
mixed$defaultValue‪the default value for this Form Element

Implements TYPO3\CMS\Form\Domain\Model\FormElements\FormElementInterface.

Definition at line 104 of file UnknownFormElement.php.

◆ setProperty()

TYPO3\CMS\Form\Domain\Model\FormElements\UnknownFormElement::setProperty ( string  $key,
  $value 
)

Not used in this implementation

Parameters
mixed$value

Implements TYPO3\CMS\Form\Domain\Model\FormElements\FormElementInterface.

Definition at line 112 of file UnknownFormElement.php.