PHP Класс FluidTYPO3\Flux\Form\Field\Select

Наследование: extends FluidTYPO3\Flux\Form\AbstractMultiValueFormField
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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.

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
addOptionsFromResults ( TYPO3\CMS\Extbase\Persistence\QueryInterface $query ) : array
getLabelPropertyName ( string $table, string $type ) : string

Описание методов

addOptionsFromResults() защищенный Метод

protected addOptionsFromResults ( TYPO3\CMS\Extbase\Persistence\QueryInterface $query ) : array
$query TYPO3\CMS\Extbase\Persistence\QueryInterface
Результат array

buildConfiguration() публичный Метод

public buildConfiguration ( ) : array
Результат array

getEmptyOption() публичный Метод

public getEmptyOption ( ) : boolean | string
Результат boolean | string

getItems() публичный Метод

public getItems ( ) : array
Результат array

getLabelPropertyName() защищенный Метод

protected getLabelPropertyName ( string $table, string $type ) : string
$table string
$type string
Результат string

getRenderType() публичный Метод

public getRenderType ( ) : string
Результат string

getShowIconTable() публичный Метод

public getShowIconTable ( ) : boolean
Результат boolean

getTranslateCsvItems() публичный Метод

public getTranslateCsvItems ( ) : boolean
Результат boolean

setEmptyOption() публичный Метод

public setEmptyOption ( boolean | string $emptyOption ) : Select
$emptyOption boolean | string
Результат Select

setItems() публичный Метод

public setItems ( array $items ) : Select
$items array
Результат Select

setRenderType() публичный Метод

public setRenderType ( string $renderType ) : void
$renderType string
Результат void

setShowIconTable() публичный Метод

public setShowIconTable ( boolean $showIconTable ) : Select
$showIconTable boolean
Результат Select

setTranslateCsvItems() публичный Метод

public setTranslateCsvItems ( boolean $translateCsvItems ) : Select
$translateCsvItems boolean
Результат Select

Описание свойств

$emptyOption защищенное свойство

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
Результат boolean | string

$items защищенное свойство

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
Результат mixed

$renderType защищенное свойство

Special rendering type of this component - supports all values normally supported by TCA of the "select" field type.
См. также: https://docs.typo3.org/typo3cms/TCAReference/Reference/Columns/Select/Index.html#rendertype
protected string $renderType
Результат string

$showIconTable защищенное свойство

Displays option icons as table beneath the select.
См. также: https://docs.typo3.org/typo3cms/TCAReference/Reference/Columns/Select/Index.html#showicontable
protected bool $showIconTable
Результат boolean

$translateCsvItems защищенное свойство

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
Результат boolean