PHP Class Contao\FormSelectMenu

Form field "select menu".
Inheritance: extends Widget
Afficher le fichier Open project: contao/core-bundle

Protected Properties

Свойство Type Description
$blnForAttribute boolean Add a for attribute
$blnSubmitInput boolean Submit user input
$strPrefix string The CSS class prefix
$strTemplate string Template

Méthodes publiques

Méthode Description
__get ( string $strKey ) : mixed Return a parameter
__set ( string $strKey, mixed $varValue ) Add specific attributes
generate ( ) : string Generate the widget and return it as string
parse ( array $arrAttributes = null ) : string Parse the template file and return it as string
validate ( ) Check options if the field is mandatory

Méthodes protégées

Méthode Description
getOptions ( ) : array Generate the options

Method Details

__get() public méthode

Return a parameter
public __get ( string $strKey ) : mixed
$strKey string The parameter name
Résultat mixed The parameter value

__set() public méthode

Add specific attributes
public __set ( string $strKey, mixed $varValue )
$strKey string The attribute name
$varValue mixed The attribute value

generate() public méthode

Generate the widget and return it as string
public generate ( ) : string
Résultat string The widget markup

getOptions() protected méthode

Generate the options
protected getOptions ( ) : array
Résultat array The options array

parse() public méthode

Parse the template file and return it as string
public parse ( array $arrAttributes = null ) : string
$arrAttributes array An optional attributes array
Résultat string The template markup

validate() public méthode

Check options if the field is mandatory
public validate ( )

Property Details

$blnForAttribute protected_oe property

Add a for attribute
protected bool $blnForAttribute
Résultat boolean

$blnSubmitInput protected_oe property

Submit user input
protected bool $blnSubmitInput
Résultat boolean

$strPrefix protected_oe property

The CSS class prefix
protected string $strPrefix
Résultat string

$strTemplate protected_oe property

Template
protected string $strTemplate
Résultat string