PHP Class Contao\FormSelectMenu

Form field "select menu".
Inheritance: extends Widget
Mostra file Open project: contao/core-bundle

Protected Properties

Property Type Description
$blnForAttribute boolean Add a for attribute
$blnSubmitInput boolean Submit user input
$strPrefix string The CSS class prefix
$strTemplate string Template

Public Methods

Method 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

Protected Methods

Method Description
getOptions ( ) : array Generate the options

Method Details

__get() public method

Return a parameter
public __get ( string $strKey ) : mixed
$strKey string The parameter name
return mixed The parameter value

__set() public method

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

generate() public method

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

getOptions() protected method

Generate the options
protected getOptions ( ) : array
return array The options array

parse() public method

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

validate() public method

Check options if the field is mandatory
public validate ( )

Property Details

$blnForAttribute protected_oe property

Add a for attribute
protected bool $blnForAttribute
return boolean

$blnSubmitInput protected_oe property

Submit user input
protected bool $blnSubmitInput
return boolean

$strPrefix protected_oe property

The CSS class prefix
protected string $strPrefix
return string

$strTemplate protected_oe property

Template
protected string $strTemplate
return string