From e4999b25052d1ad9400a0f9fd5289a49eea1bddc Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Sun, 25 Jan 2015 20:04:57 +0100 Subject: More namespace changes Changed version to 3.2.99; Attempt at fixing autoloading fixed enough namespaces to have some demos running --- framework/I18N/TDateFormat.php | 6 +++--- framework/I18N/TGlobalization.php | 2 ++ framework/I18N/TGlobalizationAutoDetect.php | 7 +------ framework/I18N/TNumberFormat.php | 6 +++--- 4 files changed, 9 insertions(+), 12 deletions(-) (limited to 'framework/I18N') 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 * @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 @@ -11,11 +11,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 * @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 -- cgit v1.2.3