From 63c79dd722d5a8dd09b8828a4711d496680c0062 Mon Sep 17 00:00:00 2001 From: xue <> Date: Mon, 3 Apr 2006 21:55:33 +0000 Subject: Cleanup of I18N. --- framework/I18N/TDateFormat.php | 27 ++++++++++----------------- 1 file changed, 10 insertions(+), 17 deletions(-) (limited to 'framework/I18N/TDateFormat.php') diff --git a/framework/I18N/TDateFormat.php b/framework/I18N/TDateFormat.php index 8e7a7e30..8ebbce5e 100644 --- a/framework/I18N/TDateFormat.php +++ b/framework/I18N/TDateFormat.php @@ -1,19 +1,12 @@ - * @version $Revision: 1.11 $ $Date: 2005/12/16 04:33:02 $ + * @author Wei Zhuo + * @link http://www.pradosoft.com/ + * @copyright Copyright © 2005 PradoSoft + * @license http://www.pradosoft.com/license/ + * @version $Revision: $ $Date: $ * @package System.I18N */ @@ -88,7 +81,7 @@ class TDateFormat extends TI18NControl * Sets the date time formatting pattern. * @param string format pattern. */ - function setPattern($value) + public function setPattern($value) { $this->setViewState('Pattern',$value,''); } @@ -97,7 +90,7 @@ class TDateFormat extends TI18NControl * Gets the date time format pattern. * @return string format pattern. */ - function getPattern() + public function getPattern() { $string = $this->getViewState('Pattern',''); @@ -150,7 +143,7 @@ class TDateFormat extends TI18NControl * Get the date-time value for this control. * @return string date time value. */ - function getValue() + public function getValue() { $value = $this->getViewState('Value',''); if(empty($value)) @@ -162,7 +155,7 @@ class TDateFormat extends TI18NControl * Set the date-time value for this control. * @param string the date-time value. */ - function setValue($value) + public function setValue($value) { $this->setViewState('Value',$value,''); } @@ -175,7 +168,7 @@ class TDateFormat extends TI18NControl */ protected function getFormattedDate() { - $app = $this->Application->getGlobalization(); + $app = $this->getApplication()->getGlobalization(); //initialized the default class wide formatter if(is_null(self::$formatter)) -- cgit v1.2.3