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
파일 보기 프로젝트 열기: pradosoft/prado

공개 메소드들

메소드 설명
__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 )