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
Показать файл Открыть проект

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

Метод Описание
__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 )