‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\Form\Element\SelectSingleBoxElement Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Form\Element\SelectSingleBoxElement:
TYPO3\CMS\Backend\Form\Element\AbstractFormElement TYPO3\CMS\Backend\Form\AbstractNode TYPO3\CMS\Backend\Form\NodeInterface

Public Member Functions

array render ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Backend\Form\Element\AbstractFormElement
 injectNodeFactory (NodeFactory $nodeFactory)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Backend\Form\AbstractNode
 setData (array $data)
 

Protected Member Functions

 renderSelectElement (array $optionElements, array $parameterArray, array $config, string $selectId, int $size)
 
string renderOptionElement ($value, $label, array $attributes=[])
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Backend\Form\Element\AbstractFormElement
array renderFieldInformation ()
 
array renderFieldControl ()
 
array renderFieldWizard ()
 
 renderLabel (string $for)
 
 wrapWithFieldsetAndLegend (string $innerHTML)
 
 hasNullCheckboxButNoPlaceholder ()
 
 hasNullCheckboxWithPlaceholder ()
 
string formatValue ($format, $itemValue, $formatOptions=[])
 
int formMaxWidth ($size=48)
 
 resolveJavaScriptEvaluation (array $resultArray, string $name, ?object $evalObject)
 
string checkBoxParams (string $itemName, int $formElementValue, int $checkbox, int $checkboxesCount, array $fieldChangeFuncs=[], bool $invert=false)
 
 calculateColumnMarkup (int $cols)
 
 appendValueToLabelInDebugMode (string|int $label, string|int $value)
 
 getLanguageService ()
 
 getBackendUser ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Backend\Form\AbstractNode
 initializeResultArray ()
 
array mergeChildReturnIntoExistingResult (array $existing, array $childReturn, bool $mergeHtml=true)
 
 getValidationDataAsJsonString (array $config)
 

Protected Attributes

array $defaultFieldInformation
 
array $defaultFieldControl
 
array $defaultFieldWizard
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Backend\Form\Element\AbstractFormElement
int $defaultInputWidth = 30
 
int $minimumInputWidth = 10
 
int $maxInputWidth = 50
 
NodeFactory $nodeFactory
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Backend\Form\AbstractNode
array $data = []
 
array $defaultFieldInformation = array( )
 
array $defaultFieldControl = array( )
 
array $defaultFieldWizard = array( )
 

Detailed Description

Create a widget with a select box where multiple items can be selected

This is rendered for config type=select, renderType=selectSingleBox

Definition at line 27 of file SelectSingleBoxElement.php.

Member Function Documentation

◆ render()

◆ renderOptionElement()

string TYPO3\CMS\Backend\Form\Element\SelectSingleBoxElement::renderOptionElement (   $value,
  $label,
array  $attributes = [] 
)
protected

Renders a single <option> element

Parameters
string$value‪The option value
string$label‪The option label
array$attributes‪Map of attribute names and values
Returns
‪string

Definition at line 206 of file SelectSingleBoxElement.php.

References TYPO3\CMS\Backend\Form\Element\AbstractFormElement\appendValueToLabelInDebugMode().

Referenced by TYPO3\CMS\Backend\Form\Element\SelectSingleBoxElement\render().

◆ renderSelectElement()

TYPO3\CMS\Backend\Form\Element\SelectSingleBoxElement::renderSelectElement ( array  $optionElements,
array  $parameterArray,
array  $config,
string  $selectId,
int  $size 
)
protected

Member Data Documentation

◆ $defaultFieldControl

array TYPO3\CMS\Backend\Form\Element\SelectSingleBoxElement::$defaultFieldControl
protected
Initial value:
= array(
'resetSelection' => [
'renderType' => 'resetSelection',
],
)

Default field controls for this element.

Definition at line 43 of file SelectSingleBoxElement.php.

◆ $defaultFieldInformation

array TYPO3\CMS\Backend\Form\Element\SelectSingleBoxElement::$defaultFieldInformation
protected
Initial value:
= array(
'tcaDescription' => [
'renderType' => 'tcaDescription',
],
)

Default field information enabled for this element.

Definition at line 33 of file SelectSingleBoxElement.php.

◆ $defaultFieldWizard

array TYPO3\CMS\Backend\Form\Element\SelectSingleBoxElement::$defaultFieldWizard
protected
Initial value:
= array(
'localizationStateSelector' => [
'renderType' => 'localizationStateSelector',
],
'otherLanguageContent' => [
'renderType' => 'otherLanguageContent',
'after' => [
'localizationStateSelector',
],
],
'defaultLanguageDifferences' => [
'renderType' => 'defaultLanguageDifferences',
'after' => [
'otherLanguageContent',
],
],
)

Default field wizards enabled for this element.

Definition at line 53 of file SelectSingleBoxElement.php.