‪TYPO3CMS  10.4
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 ()
 
string getTemplateName ()
 
mixed getDefaultValue ()
 
 setDefaultValue ($defaultValue)
 
 setProperty (string $key, $value)
 
array getProperties ()
 
bool isRequired ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Form\Domain\Model\Renderable\AbstractRenderable
string getType ()
 
string getIdentifier ()
 
 setIdentifier (string $identifier)
 
 setOptions (array $options, bool $resetValidators=false)
 
mixed createValidator (string $validatorIdentifier, array $options=[])
 
 addValidator (ValidatorInterface $validator)
 
SplObjectStorage getValidators ()
 
 setDataType (string $dataType)
 
string getRendererClassName ()
 
array getRenderingOptions ()
 
mixed setRenderingOption (string $key, $value)
 
CompositeRenderableInterface null getParentRenderable ()
 
 setParentRenderable (CompositeRenderableInterface $parentRenderable)
 
FormDefinition getRootForm ()
 
 registerInFormIfPossible ()
 
 onRemoveFromParentRenderable ()
 
int getIndex ()
 
 setIndex (int $index)
 
string getLabel ()
 
 setLabel (string $label)
 
bool isEnabled ()
 
RenderableVariantInterface[] getVariants ()
 
RenderableVariantInterface 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 $parentRenderable
 
string $label = ''
 
array $renderingOptions = array( )
 
int $index = 0
 
string $templateName = ''
 
array $variants = array( )
 

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 43 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 96 of file UnknownFormElement.php.

◆ getProperties()

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

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

Definition at line 126 of file UnknownFormElement.php.

◆ getTemplateName()

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

Get the template name of the renderable

Returns
‪string

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

Definition at line 87 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 74 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 55 of file UnknownFormElement.php.

References $GLOBALS.

◆ isRequired()

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

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

Definition at line 135 of file UnknownFormElement.php.

◆ 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 107 of file UnknownFormElement.php.

◆ setProperty()

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

Not used in this implementation

Parameters
string$key
mixed$value

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

Definition at line 118 of file UnknownFormElement.php.