PHP 클래스 FluidTYPO3\Flux\Form\Field\Select

상속: extends FluidTYPO3\Flux\Form\AbstractMultiValueFormField
파일 보기 프로젝트 열기: fluidtypo3/flux 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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