From c2ababac4b20a6638aec62227e35bf30c65f3c2b Mon Sep 17 00:00:00 2001 From: xue <> Date: Mon, 22 Oct 2007 15:34:51 +0000 Subject: added data setter/getter. --- framework/Web/UI/WebControls/TDatePicker.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'framework/Web/UI/WebControls/TDatePicker.php') diff --git a/framework/Web/UI/WebControls/TDatePicker.php b/framework/Web/UI/WebControls/TDatePicker.php index 3e9d97df..2580ab78 100644 --- a/framework/Web/UI/WebControls/TDatePicker.php +++ b/framework/Web/UI/WebControls/TDatePicker.php @@ -291,6 +291,32 @@ class TDatePicker extends TTextBox } } + /** + * Returns the timestamp selected by the user. + * This method is required by {@link IDataRenderer}. + * It is the same as {@link getTimeStamp()}. + * @return integer the timestamp of the TDatePicker control. + * @see getTimeStamp + * @since 3.1.2 + */ + public function getData() + { + return $this->getTimeStamp(); + } + + /** + * Sets the timestamp represented by this control. + * This method is required by {@link IDataRenderer}. + * It is the same as {@link setTimeStamp()}. + * @param integer the timestamp of the TDatePicker control. + * @see setTimeStamp + * @since 3.1.2 + */ + public function setData($value) + { + $this->setTimeStamp($value); + } + /** * @return string the date string. */ -- cgit v1.2.3