Свойство | Тип | Описание | |
---|---|---|---|
$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 ) : |
||
setItems ( array $items ) : |
||
setRenderType ( string $renderType ) : void | ||
setShowIconTable ( boolean $showIconTable ) : |
||
setTranslateCsvItems ( boolean $translateCsvItems ) : |
Метод | Описание | |
---|---|---|
addOptionsFromResults ( TYPO3\CMS\Extbase\Persistence\QueryInterface $query ) : array | ||
getLabelPropertyName ( string $table, string $type ) : string |
protected addOptionsFromResults ( TYPO3\CMS\Extbase\Persistence\QueryInterface $query ) : array | ||
$query | TYPO3\CMS\Extbase\Persistence\QueryInterface | |
Результат | array |
public getEmptyOption ( ) : boolean | string | ||
Результат | boolean | string |
public setEmptyOption ( boolean | string $emptyOption ) : |
||
$emptyOption | boolean | string | |
Результат |
public setRenderType ( string $renderType ) : void | ||
$renderType | string | |
Результат | void |
public setShowIconTable ( boolean $showIconTable ) : |
||
$showIconTable | boolean | |
Результат |
public setTranslateCsvItems ( boolean $translateCsvItems ) : |
||
$translateCsvItems | boolean | |
Результат |
protected mixed $items | ||
Результат | mixed |
protected string $renderType | ||
Результат | string |
protected bool $showIconTable | ||
Результат | boolean |
protected bool $translateCsvItems | ||
Результат | boolean |