diff options
author | xue <> | 2008-03-12 19:10:11 +0000 |
---|---|---|
committer | xue <> | 2008-03-12 19:10:11 +0000 |
commit | 6fb8909d3f856cd67fae005495285f4f486680b2 (patch) | |
tree | 48f82c6ced8be733bc17bb21b87acf30be7ae928 /framework/I18N/TDateFormat.php | |
parent | 62cdfb712d0132c8e4463c25ad3291e84cfbce51 (diff) |
Fixed #757.
Diffstat (limited to 'framework/I18N/TDateFormat.php')
-rw-r--r-- | framework/I18N/TDateFormat.php | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/framework/I18N/TDateFormat.php b/framework/I18N/TDateFormat.php index 1f27cefe..28e729c6 100644 --- a/framework/I18N/TDateFormat.php +++ b/framework/I18N/TDateFormat.php @@ -56,7 +56,7 @@ Prado::using('System.I18N.TI18NControl'); * @version v1.0, last update on Sat Dec 11 15:25:11 EST 2004
* @package System.I18N
*/
-class TDateFormat extends TI18NControl
+class TDateFormat extends TI18NControl implements IDataRenderer
{
/**
* Default DateFormat, set to the application culture.
@@ -160,6 +160,32 @@ class TDateFormat extends TI18NControl }
/**
+ * Get the date-time value for this control.
+ * This method is required by {@link IDataRenderer}.
+ * It is the same as {@link getValue()}.
+ * @return string date time value.
+ * @see getValue
+ * @since 3.1.2
+ */
+ public function getData()
+ {
+ return $this->getValue();
+ }
+
+ /**
+ * Set the date-time value for this control.
+ * This method is required by {@link IDataRenderer}.
+ * It is the same as {@link setValue()}.
+ * @param string the date-time value.
+ * @see setValue
+ * @since 3.1.2
+ */
+ public function setData($value)
+ {
+ $this->setValue($value);
+ }
+
+ /**
* Renders the localized version of the date-time value.
* If the culture is not specified, the default application
* culture will be used.
|