PHP Class 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.
Since: 3.1.3
Author: Bradley Booms ([email protected])
Author: Christophe Boulain ([email protected])
Inheritance: extends Prado\Web\UI\WebControls\TDatePicker, implements Prado\Web\UI\ActiveControls\ICallbackEventHandler, implements Prado\Web\UI\ActiveControls\IActiveControl
Datei anzeigen Open project: pradosoft/prado

Public Methods

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

Protected Methods

Method Description
createClientScript ( ) : TActiveDatePickerClientScript
getDatePickerOptions ( ) : array Get javascript date picker options.
registerCalendarClientScriptPre ( ) Registers the javascript code to initialize the date picker.
renderClientControlScript ( $writer )

Method Details

__construct() public method

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 method

protected createClientScript ( ) : TActiveDatePickerClientScript
return TActiveDatePickerClientScript javascript validator event options.

getActiveControl() public method

public getActiveControl ( ) : TBaseActiveCallbackControl
return TBaseActiveCallbackControl standard callback control options.

getAutoPostBack() public method

public getAutoPostBack ( ) : boolean
return 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() protected method

Get javascript date picker options.
protected getDatePickerOptions ( ) : array
return array date picker client-side options

onCallback() public method

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() public method

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

registerCalendarClientScriptPre() protected method

Registers the javascript code to initialize the date picker.

renderClientControlScript() protected method

protected renderClientControlScript ( $writer )

setAutoPostBack() public method

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() public method

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