PHP Класс Prado\Web\UI\ActiveControls\TActiveDatePicker

The active control counter part to date picker control. When the date selection is changed, the {@link onCallback OnCallback} event is raised.
С версии: 3.1.3
Автор: Bradley Booms ([email protected])
Автор: Christophe Boulain ([email protected])
Наследование: extends Prado\Web\UI\WebControls\TDatePicker, implements Prado\Web\UI\ActiveControls\ICallbackEventHandler, implements Prado\Web\UI\ActiveControls\IActiveControl
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( ) Creates a new callback control, sets the adapter to TActiveControlAdapter. If you override this class, be sure to set the adapter appropriately by, for example, by calling this constructor.
getActiveControl ( ) : TBaseActiveCallbackControl
getAutoPostBack ( ) : boolean
onCallback ( $param ) This method is invoked when a callback is requested. The method raises 'OnCallback' event to fire up the event handlers. If you override this method, be sure to call the parent implementation so that the event handler can be invoked.
raiseCallbackEvent ( $param ) Raises the callback event. This method is required by {@link ICallbackEventHandler} interface.
setAutoPostBack ( $value ) Sets the value indicating if postback automatically.
setText ( $value ) Client-side Text property can only be updated after the OnLoad stage.

Защищенные методы

Метод Описание
createClientScript ( ) : TActiveDatePickerClientScript
getDatePickerOptions ( ) : array Get javascript date picker options.
registerCalendarClientScriptPre ( ) Registers the javascript code to initialize the date picker.
renderClientControlScript ( $writer )

Описание методов

__construct() публичный Метод

Creates a new callback control, sets the adapter to TActiveControlAdapter. If you override this class, be sure to set the adapter appropriately by, for example, by calling this constructor.
public __construct ( )

createClientScript() защищенный Метод

protected createClientScript ( ) : TActiveDatePickerClientScript
Результат TActiveDatePickerClientScript javascript validator event options.

getActiveControl() публичный Метод

public getActiveControl ( ) : TBaseActiveCallbackControl
Результат TBaseActiveCallbackControl standard callback control options.

getAutoPostBack() публичный Метод

public getAutoPostBack ( ) : boolean
Результат boolean a value indicating whether an automatic postback to the server will occur whenever the user modifies the text in the TActiveDatePicker control and then tabs out of the component. Defaults to true.

getDatePickerOptions() защищенный Метод

Get javascript date picker options.
protected getDatePickerOptions ( ) : array
Результат array date picker client-side options

onCallback() публичный Метод

This method is invoked when a callback is requested. The method raises 'OnCallback' event to fire up the event handlers. If you override this method, be sure to call the parent implementation so that the event handler can be invoked.
public onCallback ( $param )

raiseCallbackEvent() публичный Метод

This method is mainly used by framework and control developers.
public raiseCallbackEvent ( $param )

registerCalendarClientScriptPre() защищенный Метод

Registers the javascript code to initialize the date picker.

renderClientControlScript() защищенный Метод

protected renderClientControlScript ( $writer )

setAutoPostBack() публичный Метод

An automatic postback to the server will occur whenever the user modifies the text in the TActiveDatePicker control and then tabs out of the component.
public setAutoPostBack ( $value )

setText() публичный Метод

Client-side Text property can only be updated after the OnLoad stage.
public setText ( $value )