PHP 클래스 Prado\Web\UI\JuiControls\TJuiDatePicker

TJuiDatePicker is a textbox that provides a date input. When the text box receives focus, a calendar will pop up and users can pick up from it a date that will be automatically entered into the text box. TJuiDatePicker is an extension to {@link TActivePanel} based on jQuery-UI's {@link http://jqueryui.com/dialog/ Dialog} widget.
부터: 3.3
저자: LANDWEHR Computer und Software GmbH ([email protected])
상속: extends Prado\Web\UI\ActiveControls\TActiveTextBox, implements Prado\Web\UI\INamingContainer, implements Prado\Web\UI\JuiControls\IJuiOptions
파일 보기 프로젝트 열기: 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.
getCulture ( ) : string Gets the current culture.
getData ( ) : integer Returns the timestamp selected by the user.
getDate ( ) : string
getDateFormat ( ) : string
getOptions ( ) : TJuiControlOptions Object containing defined javascript options
getTextMode ( ) : TTextBoxMode
getTimeStamp ( ) : integer
getValidEvents ( ) : array() Array containing valid javascript events
getValidOptions ( ) : array() Array containing valid javascript options
getValidationPropertyValue ( ) : integer Returns the value to be validated.
getWidget ( ) : string
getWidgetID ( ) : string
setCulture ( $value ) Sets the culture/language for the date picker.
setData ( $value ) Sets the timestamp represented by this control.
setDate ( $value )
setDateFormat ( $value ) Sets the format of the date string.
setTextMode ( $value ) Setting the behavior mode of the underlying TTextBox component is NOT supported.
setTimeStamp ( $value ) Sets the date for the date picker using timestamp.

보호된 메소드들

메소드 설명
addAttributesToRender ( $writer ) Ensure that the ID attribute is rendered and registers the javascript code for initializing the active control. Also registers language specific global settings for the first used date picker.
getCurrentCulture ( ) : string
getTimeStampFromText ( ) : integer Gets the date from the text input using TSimpleDateFormatter

메소드 상세

__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 ( )

addAttributesToRender() 보호된 메소드

Ensure that the ID attribute is rendered and registers the javascript code for initializing the active control. Also registers language specific global settings for the first used date picker.
protected addAttributesToRender ( $writer )

getCulture() 공개 메소드

Gets the current culture.
public getCulture ( ) : string
리턴 string current culture, e.g. en_AU.

getCurrentCulture() 보호된 메소드

protected getCurrentCulture ( ) : string
리턴 string the current culture, falls back to application if culture is not set.

getData() 공개 메소드

This method is required by {@link IDataRenderer}. It is the same as {@link getTimeStamp()}.
또한 보기: getTimeStamp
부터: 3.1.2
public getData ( ) : integer
리턴 integer the timestamp of the TDatePicker control.

getDate() 공개 메소드

public getDate ( ) : string
리턴 string the date string.

getDateFormat() 공개 메소드

public getDateFormat ( ) : string
리턴 string the format of the date string

getOptions() 공개 메소드

Object containing defined javascript options
public getOptions ( ) : TJuiControlOptions
리턴 TJuiControlOptions

getTextMode() 공개 메소드

public getTextMode ( ) : TTextBoxMode
리턴 Prado\Web\UI\WebControls\TTextBoxMode the behavior mode of the underlying {@link TTextBox} component. Fixed to TTextBoxMode::SingleLine for the TJuiDatePicker.

getTimeStamp() 공개 메소드

public getTimeStamp ( ) : integer
리턴 integer current selected date from the date picker as timestamp, NULL if timestamp is not set previously.

getTimeStampFromText() 보호된 메소드

Gets the date from the text input using TSimpleDateFormatter
protected getTimeStampFromText ( ) : integer
리턴 integer current selected date timestamp

getValidEvents() 공개 메소드

Array containing valid javascript events
public getValidEvents ( ) : array()
리턴 array()

getValidOptions() 공개 메소드

Array containing valid javascript options
public getValidOptions ( ) : array()
리턴 array()

getValidationPropertyValue() 공개 메소드

This methid is required by IValidatable interface.
public getValidationPropertyValue ( ) : integer
리턴 integer the interger timestamp if valid, otherwise the original text.

getWidget() 공개 메소드

public getWidget ( ) : string
리턴 string the name of the jQueryUI widget method

getWidgetID() 공개 메소드

public getWidgetID ( ) : string
리턴 string the clientid of the jQueryUI widget element

setCulture() 공개 메소드

Sets the culture/language for the date picker.
public setCulture ( $value )

setData() 공개 메소드

This method is required by {@link IDataRenderer}. It is the same as {@link setTimeStamp()}.
또한 보기: setTimeStamp
부터: 3.1.2
public setData ( $value )

setDate() 공개 메소드

public setDate ( $value )

setDateFormat() 공개 메소드

Sets the format of the date string.
public setDateFormat ( $value )

setTextMode() 공개 메소드

Setting the behavior mode of the underlying TTextBox component is NOT supported.
public setTextMode ( $value )

setTimeStamp() 공개 메소드

Sets the date for the date picker using timestamp.
public setTimeStamp ( $value )