PHP 클래스 Contao\InputUnit

Provide methods to handle text fields with unit drop down menu.
상속: extends Widget
파일 보기 프로젝트 열기: contao/core-bundle 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$arrUnits array Units
$blnSubmitInput boolean Submit user input
$strTemplate string Template

공개 메소드들

메소드 설명
__set ( string $strKey, mixed $varValue ) Add specific attributes
generate ( ) : string Generate the widget and return it as string

보호된 메소드들

메소드 설명
isSelected ( array $arrOption ) : string Only check against the unit values (see #7246)
validator ( mixed $varInput ) : mixed Do not validate unit fields

메소드 상세

__set() 공개 메소드

Add specific attributes
public __set ( string $strKey, mixed $varValue )
$strKey string
$varValue mixed

generate() 공개 메소드

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

isSelected() 보호된 메소드

Only check against the unit values (see #7246)
protected isSelected ( array $arrOption ) : string
$arrOption array The options array
리턴 string The "selected" attribute or an empty string

validator() 보호된 메소드

Do not validate unit fields
protected validator ( mixed $varInput ) : mixed
$varInput mixed
리턴 mixed

프로퍼티 상세

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

Units
protected array $arrUnits
리턴 array

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

Submit user input
protected bool $blnSubmitInput
리턴 boolean

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

Template
protected string $strTemplate
리턴 string