PHP 클래스 Contao\FormSelectMenu

Form field "select menu".
상속: extends Widget
파일 보기 프로젝트 열기: contao/core-bundle

보호된 프로퍼티들

프로퍼티 타입 설명
$blnForAttribute boolean Add a for attribute
$blnSubmitInput boolean Submit user input
$strPrefix string The CSS class prefix
$strTemplate string Template

공개 메소드들

메소드 설명
__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

보호된 메소드들

메소드 설명
getOptions ( ) : array Generate the options

메소드 상세

__get() 공개 메소드

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

__set() 공개 메소드

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

generate() 공개 메소드

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

getOptions() 보호된 메소드

Generate the options
protected getOptions ( ) : array
리턴 array The options array

parse() 공개 메소드

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

validate() 공개 메소드

Check options if the field is mandatory
public validate ( )

프로퍼티 상세

$blnForAttribute 보호되어 있는 프로퍼티

Add a for attribute
protected bool $blnForAttribute
리턴 boolean

$blnSubmitInput 보호되어 있는 프로퍼티

Submit user input
protected bool $blnSubmitInput
리턴 boolean

$strPrefix 보호되어 있는 프로퍼티

The CSS class prefix
protected string $strPrefix
리턴 string

$strTemplate 보호되어 있는 프로퍼티

Template
protected string $strTemplate
리턴 string