PHP Class WhDateRangePicker

Inheritance: extends CInputWidget
Afficher le fichier Open project: 2amigos/yiiwheels

Méthodes publiques

Свойство 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.

Méthodes publiques

Méthode 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

Méthode 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 méthode

Initializes the widget.
public init ( )

registerClientScript() public méthode

Registers required css js files

renderField() public méthode

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

run() public méthode

Runs the widget.
public run ( )

Property Details

$callback public_oe property

JS Callback for Daterange picker
public $callback

$pluginOptions public_oe property

pluginOptions to be passed to daterange picker plugin
public $pluginOptions

$selector public_oe property

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