PHP Class FluidTYPO3\Flux\Form\Field\Select

Inheritance: extends FluidTYPO3\Flux\Form\AbstractMultiValueFormField
Afficher le fichier Open project: fluidtypo3/flux Class Usage Examples

Protected Properties

Свойство Type Description
$emptyOption boolean | string If not-FALSE, adds one empty option/value pair to the generated selector box and tries to use this property's value (cast to string) as label.
$items mixed Mixed - string (CSV), Traversable or array of items. Format of key/value pairs is also optional. For single-dim arrays, key becomes option value and each member value becomes label. For multidim/Traversable each member is inspected; if it is a raw value it is used for both value and label, if it is a scalar value the first item is used as value and the second as label.
$renderType string Special rendering type of this component - supports all values normally supported by TCA of the "select" field type.
$showIconTable boolean Displays option icons as table beneath the select.
$translateCsvItems boolean If set to TRUE, Flux will attempt to translate the LLL labels of items provided as CSV values, e.g. items "foo,bar" would try to resolve LLL values for "LLL:EXT:myext/Resources/Private/Languages/locallang.xlf:foo" and "LLL:EXT:myext/Resources/Private/Languages/locallang.xlf:bar" to be used as value labels.

Méthodes publiques

Méthode Description
buildConfiguration ( ) : array
getEmptyOption ( ) : boolean | string
getItems ( ) : array
getRenderType ( ) : string
getShowIconTable ( ) : boolean
getTranslateCsvItems ( ) : boolean
setEmptyOption ( boolean | string $emptyOption ) : Select
setItems ( array $items ) : Select
setRenderType ( string $renderType ) : void
setShowIconTable ( boolean $showIconTable ) : Select
setTranslateCsvItems ( boolean $translateCsvItems ) : Select

Méthodes protégées

Méthode Description
addOptionsFromResults ( TYPO3\CMS\Extbase\Persistence\QueryInterface $query ) : array
getLabelPropertyName ( string $table, string $type ) : string

Method Details

addOptionsFromResults() protected méthode

protected addOptionsFromResults ( TYPO3\CMS\Extbase\Persistence\QueryInterface $query ) : array
$query TYPO3\CMS\Extbase\Persistence\QueryInterface
Résultat array

buildConfiguration() public méthode

public buildConfiguration ( ) : array
Résultat array

getEmptyOption() public méthode

public getEmptyOption ( ) : boolean | string
Résultat boolean | string

getItems() public méthode

public getItems ( ) : array
Résultat array

getLabelPropertyName() protected méthode

protected getLabelPropertyName ( string $table, string $type ) : string
$table string
$type string
Résultat string

getRenderType() public méthode

public getRenderType ( ) : string
Résultat string

getShowIconTable() public méthode

public getShowIconTable ( ) : boolean
Résultat boolean

getTranslateCsvItems() public méthode

public getTranslateCsvItems ( ) : boolean
Résultat boolean

setEmptyOption() public méthode

public setEmptyOption ( boolean | string $emptyOption ) : Select
$emptyOption boolean | string
Résultat Select

setItems() public méthode

public setItems ( array $items ) : Select
$items array
Résultat Select

setRenderType() public méthode

public setRenderType ( string $renderType ) : void
$renderType string
Résultat void

setShowIconTable() public méthode

public setShowIconTable ( boolean $showIconTable ) : Select
$showIconTable boolean
Résultat Select

setTranslateCsvItems() public méthode

public setTranslateCsvItems ( boolean $translateCsvItems ) : Select
$translateCsvItems boolean
Résultat Select

Property Details

$emptyOption protected_oe property

If not-FALSE, adds one empty option/value pair to the generated selector box and tries to use this property's value (cast to string) as label.
protected bool|string $emptyOption
Résultat boolean | string

$items protected_oe property

Mixed - string (CSV), Traversable or array of items. Format of key/value pairs is also optional. For single-dim arrays, key becomes option value and each member value becomes label. For multidim/Traversable each member is inspected; if it is a raw value it is used for both value and label, if it is a scalar value the first item is used as value and the second as label.
protected mixed $items
Résultat mixed

$renderType protected_oe property

Special rendering type of this component - supports all values normally supported by TCA of the "select" field type.
See also: https://docs.typo3.org/typo3cms/TCAReference/Reference/Columns/Select/Index.html#rendertype
protected string $renderType
Résultat string

$showIconTable protected_oe property

Displays option icons as table beneath the select.
See also: https://docs.typo3.org/typo3cms/TCAReference/Reference/Columns/Select/Index.html#showicontable
protected bool $showIconTable
Résultat boolean

$translateCsvItems protected_oe property

If set to TRUE, Flux will attempt to translate the LLL labels of items provided as CSV values, e.g. items "foo,bar" would try to resolve LLL values for "LLL:EXT:myext/Resources/Private/Languages/locallang.xlf:foo" and "LLL:EXT:myext/Resources/Private/Languages/locallang.xlf:bar" to be used as value labels.
protected bool $translateCsvItems
Résultat boolean