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