PHP Class WhDateRangePicker

Inheritance: extends CInputWidget
Show file Open project: 2amigos/yiiwheels

Public Properties

Property Type Description
$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.

Public Methods

Method Description
init ( ) Initializes the widget.
registerClientScript ( ) Registers required css js files
renderField ( ) Renders the field if no selector has been provided
run ( ) Runs the widget.

Private Methods

Method Description
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.

Method Details

init() public method

Initializes the widget.
public init ( )

registerClientScript() public method

Registers required css js files

renderField() public method

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

run() public method

Runs the widget.
public run ( )

Property Details

$callback public property

JS Callback for Daterange picker
public $callback

$pluginOptions public property

pluginOptions to be passed to daterange picker plugin
public $pluginOptions

$selector public property

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