TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
CheckboxViewHelper Class Reference
Inheritance diagram for CheckboxViewHelper:
AbstractFormFieldViewHelper AbstractFormViewHelper AbstractTagBasedViewHelper AbstractViewHelper CheckboxViewHelper

Public Member Functions

 initializeArguments ()
 
 render ()
 
- Public Member Functions inherited from AbstractFormFieldViewHelper
 injectConfigurationManager (\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface $configurationManager)
 
 initializeArguments ()
 
 getRespectSubmittedDataValue ()
 
 setRespectSubmittedDataValue ($respectSubmittedDataValue)
 
- Public Member Functions inherited from AbstractFormViewHelper
 injectPersistenceManager (\TYPO3\CMS\Extbase\Persistence\PersistenceManagerInterface $persistenceManager)
 
- Public Member Functions inherited from AbstractTagBasedViewHelper
 __construct ()
 
 initializeArguments ()
 
 initialize ()
 
- Public Member Functions inherited from AbstractViewHelper
 setRenderingContext (\TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext)
 
 injectObjectManager (\TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager)
 
 injectReflectionService (\TYPO3\CMS\Extbase\Reflection\ReflectionService $reflectionService)
 
 prepareArguments ()
 

Protected Attributes

 $tagName = 'input'
 
- Protected Attributes inherited from AbstractFormFieldViewHelper
 $configurationManager
 
 $respectSubmittedDataValue = false
 
- Protected Attributes inherited from AbstractFormViewHelper
 $persistenceManager
 
- Protected Attributes inherited from AbstractTagBasedViewHelper
 $tagName = 'div'
 
 $tag
 
 $escapeOutput = false
 
- Protected Attributes inherited from AbstractViewHelper
 $controllerContext
 
 $objectManager
 

Additional Inherited Members

- Protected Member Functions inherited from AbstractFormFieldViewHelper
 getName ()
 
 getRequest ()
 
 getNameWithoutPrefix ()
 
 getValueAttribute ()
 
 getValueFromSubmittedFormData ($value)
 
 convertToPlainValue ($value)
 
 hasMappingErrorOccurred ()
 
 getLastSubmittedFormData ()
 
 addAdditionalIdentityPropertiesIfNeeded ()
 
 getPropertyValue ()
 
 isObjectAccessorMode ()
 
 setErrorClassAttribute ()
 
 getMappingResultsForProperty ()
 
 renderHiddenFieldForEmptyValue ()
 
- Protected Member Functions inherited from AbstractFormViewHelper
 prefixFieldName ($fieldName)
 
 renderHiddenIdentityField ($object, $name)
 
 registerFieldNameForFormTokenGeneration ($fieldName)
 
- Protected Member Functions inherited from AbstractTagBasedViewHelper
 registerTagAttribute ($name, $type, $description, $required=false, $default=null)
 
 registerUniversalTagAttributes ()
 
- Protected Member Functions inherited from AbstractViewHelper
 callRenderMethod ()
 
 getLogger ()
 
 registerRenderMethodArguments ()
 

Detailed Description

View Helper which creates a simple checkbox (<input type="checkbox">).

= Examples =

<f:form.checkbox name="myCheckBox" value="someValue" /> <output> <input type="checkbox" name="myCheckBox" value="someValue"> </output>

<f:form.checkbox name="myCheckBox" value="someValue" checked="{object.value} == 5" /> <output> <input type="checkbox" name="myCheckBox" value="someValue" checked="checked"> (depending on $object) </output>

<f:form.checkbox property="interests" value="TYPO3" /> <output> <input type="checkbox" name="user[interests][]" value="TYPO3" checked="checked"> (depending on property "interests") </output>

Definition at line 47 of file fluid/Classes/ViewHelpers/Form/CheckboxViewHelper.php.

Member Function Documentation

initializeArguments ( )

Member Data Documentation

$tagName = 'input'
protected