diff options
author | xue <> | 2007-10-22 15:34:51 +0000 |
---|---|---|
committer | xue <> | 2007-10-22 15:34:51 +0000 |
commit | c2ababac4b20a6638aec62227e35bf30c65f3c2b (patch) | |
tree | 0cc34d355ba3f8271bedd7cd73ce86b1475cda80 /framework/Web | |
parent | 360ad2baeba15dfd6e4374d5fa3834cedc34880e (diff) |
added data setter/getter.
Diffstat (limited to 'framework/Web')
-rw-r--r-- | framework/Web/UI/WebControls/TDatePicker.php | 26 |
1 files changed, 26 insertions, 0 deletions
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 @@ -292,6 +292,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.
*/
public function getDate()
|