diff options
author | Fabio Bas <ctrlaltca@gmail.com> | 2015-01-25 20:04:57 +0100 |
---|---|---|
committer | Fabio Bas <ctrlaltca@gmail.com> | 2015-01-25 20:04:57 +0100 |
commit | e4999b25052d1ad9400a0f9fd5289a49eea1bddc (patch) | |
tree | 50e9b819fc3326cf08e882b648f8dafc8fec3fa4 /framework/I18N | |
parent | 5230f8f8a86fc1ae5d90f8c74ae65c93e197502b (diff) |
More namespace changes
Changed version to 3.2.99;
Attempt at fixing autoloading
fixed enough namespaces to have some demos running
Diffstat (limited to 'framework/I18N')
-rw-r--r-- | framework/I18N/TDateFormat.php | 6 | ||||
-rw-r--r-- | framework/I18N/TGlobalization.php | 2 | ||||
-rw-r--r-- | framework/I18N/TGlobalizationAutoDetect.php | 7 | ||||
-rw-r--r-- | framework/I18N/TNumberFormat.php | 6 |
4 files changed, 9 insertions, 12 deletions
diff --git a/framework/I18N/TDateFormat.php b/framework/I18N/TDateFormat.php index 638930fe..eedabfb4 100644 --- a/framework/I18N/TDateFormat.php +++ b/framework/I18N/TDateFormat.php @@ -59,7 +59,7 @@ Prado::using('System.I18N.TI18NControl'); * @author Xiang Wei Zhuo <weizhuo[at]gmail[dot]com> * @package Prado\I18N */ -class TDateFormat extends TI18NControl implements IDataRenderer +class TDateFormat extends TI18NControl implements \Prado\IDataRenderer { /** * Default DateFormat, set to the application culture. @@ -186,7 +186,7 @@ class TDateFormat extends TI18NControl implements IDataRenderer /** * Get the date-time value for this control. - * This method is required by {@link IDataRenderer}. + * This method is required by {@link \Prado\IDataRenderer}. * It is the same as {@link getValue()}. * @return string date time value. * @see getValue @@ -199,7 +199,7 @@ class TDateFormat extends TI18NControl implements IDataRenderer /** * Set the date-time value for this control. - * This method is required by {@link IDataRenderer}. + * This method is required by {@link \Prado\IDataRenderer}. * It is the same as {@link setValue()}. * @param string the date-time value. * @see setValue diff --git a/framework/I18N/TGlobalization.php b/framework/I18N/TGlobalization.php index d722d809..f50fdb7e 100644 --- a/framework/I18N/TGlobalization.php +++ b/framework/I18N/TGlobalization.php @@ -10,6 +10,8 @@ */ namespace Prado\I18N; +use Prado\TApplication; +use Prado\TPropertyValue; /** * TGlobalization contains settings for Culture, Charset diff --git a/framework/I18N/TGlobalizationAutoDetect.php b/framework/I18N/TGlobalizationAutoDetect.php index b3e0f5db..e7249343 100644 --- a/framework/I18N/TGlobalizationAutoDetect.php +++ b/framework/I18N/TGlobalizationAutoDetect.php @@ -12,11 +12,6 @@ namespace Prado\I18N; /** - * Import the HTTPNeogtiator - */ -Prado::using('System.I18N.core.HTTPNegotiator'); - -/** * TGlobalizationAutoDetect class will automatically try to resolve the default * culture using the user browser language settings. * @@ -32,7 +27,7 @@ class TGlobalizationAutoDetect extends TGlobalization parent::init($xml); //set the culture according to browser language settings - $http = new HTTPNegotiator(); + $http = new core\HTTPNegotiator(); $languages = $http->getLanguages(); if(count($languages) > 0) { diff --git a/framework/I18N/TNumberFormat.php b/framework/I18N/TNumberFormat.php index 0b327be3..7940c785 100644 --- a/framework/I18N/TNumberFormat.php +++ b/framework/I18N/TNumberFormat.php @@ -64,7 +64,7 @@ Prado::using('System.I18N.TI18NControl'); * @author Xiang Wei Zhuo <weizhuo[at]gmail[dot]com> * @package Prado\I18N */ -class TNumberFormat extends TI18NControl implements IDataRenderer +class TNumberFormat extends TI18NControl implements \Prado\IDataRenderer { /** * Default NumberFormat, set to the application culture. @@ -128,7 +128,7 @@ class TNumberFormat extends TI18NControl implements IDataRenderer /** * Get the numberic value for this control. - * This method is required by {@link IDataRenderer}. + * This method is required by {@link \Prado\IDataRenderer}. * It is the same as {@link getValue()}. * @return string number * @see getValue @@ -141,7 +141,7 @@ class TNumberFormat extends TI18NControl implements IDataRenderer /** * Set the numberic value for this control. - * This method is required by {@link IDataRenderer}. + * This method is required by {@link \Prado\IDataRenderer}. * It is the same as {@link setValue()}. * @param string the number value * @see setValue |