PHP 클래스 WhDateRangePicker

상속: extends CInputWidget
파일 보기 프로젝트 열기: 2amigos/yiiwheels

공개 프로퍼티들

프로퍼티 타입 설명
$callback JS Callback for Daterange picker
$pluginOptions pluginOptions to be passed to daterange picker plugin
$selector string if provided, then no input field will be rendered. It will write the JS code for the specified selector.

공개 메소드들

메소드 설명
init ( ) Initializes the widget.
registerClientScript ( ) Registers required css js files
renderField ( ) Renders the field if no selector has been provided
run ( ) Runs the widget.

비공개 메소드들

메소드 설명
setDaysOfWeekNames ( ) Sets days of week names if no locale settings were made to the plugin options.
setLocaleSettings ( ) If user did not provided the names of weekdays and months in $this->pluginOptions['locale'] (which he should not care about anyway) then we populate this names from Yii's locales database.
setMonthNames ( ) Sets month names if no locale settings were made to the plugin options.

메소드 상세

init() 공개 메소드

Initializes the widget.
public init ( )

registerClientScript() 공개 메소드

Registers required css js files

renderField() 공개 메소드

Renders the field if no selector has been provided
public renderField ( )

run() 공개 메소드

Runs the widget.
public run ( )

프로퍼티 상세

$callback 공개적으로 프로퍼티

JS Callback for Daterange picker
public $callback

$pluginOptions 공개적으로 프로퍼티

pluginOptions to be passed to daterange picker plugin
public $pluginOptions

$selector 공개적으로 프로퍼티

if provided, then no input field will be rendered. It will write the JS code for the specified selector.
public string $selector
리턴 string