PHP 클래스 Contao\FormCheckBox

상속: extends Widget
파일 보기 프로젝트 열기: contao/core-bundle

보호된 프로퍼티들

프로퍼티 타입 설명
$blnSubmitInput boolean Submit user input
$strError string Error message
$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
generateWithError ( boolean $blnSwitchOrder = false ) : string Override the parent method and inject the error message inside the fieldset (see #3392)
getAttributes ( array $arrStrip = [] ) : string Return all attributes as string
validate ( ) Check the options if the field is mandatory

보호된 메소드들

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

메소드 상세

__get() 공개 메소드

Return a parameter
public __get ( string $strKey ) : mixed
$strKey string The parameter key
리턴 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

generateWithError() 공개 메소드

Override the parent method and inject the error message inside the fieldset (see #3392)
public generateWithError ( boolean $blnSwitchOrder = false ) : string
$blnSwitchOrder boolean If true, the error message will be shown below the field
리턴 string The form field markup

getAttributes() 공개 메소드

Return all attributes as string
public getAttributes ( array $arrStrip = [] ) : string
$arrStrip array An optional array with attributes to strip
리턴 string The attributes string

getOptions() 보호된 메소드

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

validate() 공개 메소드

Check the options if the field is mandatory
public validate ( )

프로퍼티 상세

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

Submit user input
protected bool $blnSubmitInput
리턴 boolean

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

Error message
protected string $strError
리턴 string

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

The CSS class prefix
protected string $strPrefix
리턴 string

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

Template
protected string $strTemplate
리턴 string