TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Form\Domain\Model\Element\ResetElement Class Reference
Inheritance diagram for TYPO3\CMS\Form\Domain\Model\Element\ResetElement:
TYPO3\CMS\Form\Domain\Model\Element\AbstractElement tx_form_Domain_Model_Element_Reset

Public Member Functions

 setValue ($value='')
 
- Public Member Functions inherited from TYPO3\CMS\Form\Domain\Model\Element\AbstractElement
 __construct ()
 
 setElementId ()
 
 getElementId ()
 
 getElementType ()
 
 setName ($name='')
 
 getName ()
 
 acceptsParentName ()
 
 setAttribute ($attribute, $value)
 
 getAllowedAttributes ()
 
 getMandatoryAttributes ()
 
 hasAllowedAttributes ()
 
 hasAllowedAdditionals ()
 
 getAllowedAdditionals ()
 
 getAttributes ()
 
 hasAttribute ($key)
 
 getAttributeValue ($key)
 
 getAdditional ()
 
 getAdditionalObjectByKey ($key)
 
 getAdditionalValue ($key)
 
 setLayout ($layout='')
 
 getLayout ()
 
 setValue ($value='')
 
 getValue ()
 
 setData ($data='')
 
 setMessagesFromValidation ()
 
 setErrorsFromValidation ()
 
 setAdditional ($additional, $type, $value)
 
 additionalIsSet ($key)
 
 setAdditionalLayout ($key, $layout)
 
 makeFilter ($class, $arguments=array())
 
 addFilter ($filter)
 
 checkFilterAndSetIncomingDataFromRequest ()
 

Protected Attributes

 $allowedAttributes
 
 $mandatoryAttributes
 
- Protected Attributes inherited from TYPO3\CMS\Form\Domain\Model\Element\AbstractElement
 $elementId
 
 $elementType = self::ELEMENT_TYPE_FORM
 
 $name
 
 $acceptsParentName = FALSE
 
 $attributes
 
 $additional
 
 $layout
 
 $value
 
 $data
 
 $allowedAdditional
 
 $mandatoryAttributes = array()
 
 $allowedAttributes = array()
 
 $localCobj
 
 $requestHandler
 
 $elementCounter
 
 $validateClass
 
 $filter
 

Additional Inherited Members

- Public Attributes inherited from TYPO3\CMS\Form\Domain\Model\Element\AbstractElement
const ELEMENT_TYPE_FORM = 'FORM'
 
const ELEMENT_TYPE_PLAIN = 'PLAIN'
 
const ELEMENT_TYPE_CONTENT = 'CONTENT'
 
- Protected Member Functions inherited from TYPO3\CMS\Form\Domain\Model\Element\AbstractElement
 createAttributes ()
 
 createAdditional ()
 
 createFilter ()
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Reset button model object

Author
Patrick Broens patri.nosp@m.ck@p.nosp@m.atric.nosp@m.kbro.nosp@m.ens.n.nosp@m.l

Definition at line 22 of file ResetElement.php.

Member Function Documentation

◆ setValue()

TYPO3\CMS\Form\Domain\Model\Element\ResetElement::setValue (   $value = '')

Set the value of the button Checks if value is set from Typoscript, otherwise use localized value. Also changes the value attribute

Parameters
string$valueValue to display on button
Returns
void
See also
::setValue()

Definition at line 65 of file ResetElement.php.

References TYPO3\CMS\Form\Domain\Model\Element\AbstractElement\$value, TYPO3\CMS\Form\Domain\Model\Element\AbstractElement\getAttributeValue(), TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance(), and TYPO3\CMS\Form\Domain\Model\Element\AbstractElement\setAttribute().

Member Data Documentation

◆ $allowedAttributes

TYPO3\CMS\Form\Domain\Model\Element\ResetElement::$allowedAttributes
protected
Initial value:
= array(
'accesskey' => '',
'alt' => '',
'class' => '',
'dir' => '',
'disabled' => '',
'id' => '',
'lang' => '',
'name' => '',
'style' => '',
'tabindex' => '',
'title' => '',
'type' => 'reset',
'value' => ''
)

Definition at line 29 of file ResetElement.php.

◆ $mandatoryAttributes

TYPO3\CMS\Form\Domain\Model\Element\ResetElement::$mandatoryAttributes
protected
Initial value:
= array(
'name',
'id'
)

Definition at line 50 of file ResetElement.php.