PHP Class FluidTYPO3\Vhs\ViewHelpers\Form\SelectViewHelper

Inheritance: extends TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormFieldViewHelper
Afficher le fichier Open project: fluidtypo3/vhs

Protected Properties

Свойство Type Description
$selectedValue mixed
$tagName string

Méthodes publiques

Méthode Description
initializeArguments ( ) : void Initialize arguments.
render ( ) : string Render the tag.

Méthodes protégées

Méthode Description
getOptions ( ) : array Render the option tags.
getSelectedValue ( ) : mixed Retrieves the selected value(s)
isSelected ( mixed $value ) : boolean Render the option tags.
renderOptionTag ( string $value, string $label, boolean $isSelected ) : string Render one option tag
renderOptionTags ( array $options ) : string Render the option tags.

Method Details

getOptions() protected méthode

Render the option tags.
protected getOptions ( ) : array
Résultat array

getSelectedValue() protected méthode

Retrieves the selected value(s)
protected getSelectedValue ( ) : mixed
Résultat mixed value string or an array of strings

initializeArguments() public méthode

Initialize arguments.
public initializeArguments ( ) : void
Résultat void

isSelected() protected méthode

Render the option tags.
protected isSelected ( mixed $value ) : boolean
$value mixed Value to check for
Résultat boolean TRUE if the value should be marked a s selected; FALSE otherwise

render() public méthode

Render the tag.
public render ( ) : string
Résultat string rendered tag.

renderOptionTag() protected méthode

Render one option tag
protected renderOptionTag ( string $value, string $label, boolean $isSelected ) : string
$value string value attribute of the option tag (will be escaped)
$label string content of the option tag (will be escaped)
$isSelected boolean specifies wheter or not to add selected attribute
Résultat string the rendered option tag

renderOptionTags() protected méthode

Render the option tags.
protected renderOptionTags ( array $options ) : string
$options array the options for the form.
Résultat string rendered tags.

Property Details

$selectedValue protected_oe property

protected mixed $selectedValue
Résultat mixed

$tagName protected_oe property

protected string $tagName
Résultat string