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
Afficher le fichier Open project: pradosoft/prado

Méthodes publiques

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

Méthodes protégées

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

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

protected createClientScript ( ) : TActiveDatePickerClientScript
Résultat TActiveDatePickerClientScript javascript validator event options.

getActiveControl() public méthode

public getActiveControl ( ) : TBaseActiveCallbackControl
Résultat TBaseActiveCallbackControl standard callback control options.

getAutoPostBack() public méthode

public getAutoPostBack ( ) : boolean
Résultat 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 méthode

Get javascript date picker options.
protected getDatePickerOptions ( ) : array
Résultat array date picker client-side options

onCallback() public méthode

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

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

registerCalendarClientScriptPre() protected méthode

Registers the javascript code to initialize the date picker.

renderClientControlScript() protected méthode

protected renderClientControlScript ( $writer )

setAutoPostBack() public méthode

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

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