summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--framework/IActiveControl.php6
-rw-r--r--framework/IBaseBehavior.php6
-rw-r--r--framework/IBehavior.php6
-rw-r--r--framework/IBindable.php6
-rw-r--r--framework/ICache.php5
-rw-r--r--framework/ICacheDependency.php6
-rw-r--r--framework/ICallbackEventHandler.php6
-rw-r--r--framework/IClassBehavior.php5
-rw-r--r--framework/IDataRenderer.php6
-rw-r--r--framework/IDynamicMethods.php5
-rw-r--r--framework/IInstanceCheck.php5
-rw-r--r--framework/IModule.php6
-rw-r--r--framework/IRenderable.php6
-rw-r--r--framework/IService.php6
-rw-r--r--framework/IStatePersister.php6
-rw-r--r--framework/IStyleable.php6
-rw-r--r--framework/ITextWriter.php6
-rw-r--r--framework/IUser.php5
-rw-r--r--framework/PradoBase.php6
-rw-r--r--framework/TApplication.php6
-rw-r--r--framework/TApplicationComponent.php6
-rw-r--r--framework/TApplicationConfiguration.php5
-rw-r--r--framework/TApplicationMode.php6
-rw-r--r--framework/TApplicationStatePersister.php6
-rw-r--r--framework/TClassBehaviorEventParameter.php6
-rw-r--r--framework/TComponent.php6
-rw-r--r--framework/TComponentReflection.php6
-rw-r--r--framework/TEnumerable.php5
-rw-r--r--framework/TEventParameter.php6
-rw-r--r--framework/TEventResults.php4
-rw-r--r--framework/TJavaScriptLiteral.php6
-rw-r--r--framework/TJavaScriptString.php6
-rw-r--r--framework/TModule.php6
-rw-r--r--framework/TPropertyValue.php6
-rw-r--r--framework/TService.php6
-rw-r--r--framework/TShellApplication.php6
-rw-r--r--framework/Util/TBehavior.php4
-rw-r--r--framework/Util/TBrowserLogRoute.php6
-rw-r--r--framework/Util/TCallChain.php4
-rw-r--r--framework/Util/TClassBehavior.php4
-rw-r--r--framework/Util/TDataFieldAccessor.php6
-rw-r--r--framework/Util/TDateTimeStamp.php6
-rw-r--r--framework/Util/TDbLogRoute.php6
-rw-r--r--framework/Util/TEmailLogRoute.php8
-rw-r--r--framework/Util/TFileLogRoute.php6
-rw-r--r--framework/Util/TFirePhpLogRoute.php6
-rw-r--r--framework/Util/TFirebugLogRoute.php6
-rw-r--r--framework/Util/TJsonRpcClient.php6
-rw-r--r--framework/Util/TLogRoute.php6
-rw-r--r--framework/Util/TLogRouter.php6
-rw-r--r--framework/Util/TLogger.php6
-rw-r--r--framework/Util/TParameterModule.php6
-rw-r--r--framework/Util/TRpcClient.php5
-rw-r--r--framework/Util/TRpcClientRequestException.php6
-rw-r--r--framework/Util/TRpcClientResponseException.php6
-rw-r--r--framework/Util/TRpcClientTypesEnumerable.php6
-rw-r--r--framework/Util/TSimpleDateFormatter.php6
-rw-r--r--framework/Util/TVarDumper.php6
-rw-r--r--framework/Util/TXmlRpcClient.php6
-rw-r--r--framework/Wsat/TWsatARGenerator.php5
-rw-r--r--framework/Wsat/TWsatBaseGenerator.php5
-rw-r--r--framework/Wsat/TWsatScaffoldingGenerator.php7
-rw-r--r--framework/Wsat/TWsatService.php4
-rw-r--r--framework/Wsat/pages/TWsatGenerateAR.php5
-rw-r--r--framework/Wsat/pages/TWsatHome.php5
-rw-r--r--framework/Wsat/pages/TWsatLogin.php5
-rw-r--r--framework/Wsat/pages/TWsatScaffolding.php5
-rw-r--r--framework/Xml/TXmlDocument.php6
-rw-r--r--framework/Xml/TXmlElement.php6
-rw-r--r--framework/Xml/TXmlElementList.php6
-rw-r--r--framework/interfaces.php367
-rw-r--r--framework/prado.php6
72 files changed, 272 insertions, 500 deletions
diff --git a/framework/IActiveControl.php b/framework/IActiveControl.php
index ccdbac12..cb56f9b6 100644
--- a/framework/IActiveControl.php
+++ b/framework/IActiveControl.php
@@ -6,16 +6,18 @@
* @link http://www.pradosoft.com/
* @copyright Copyright © 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System
+ * @package Prado
*/
+namespace Prado;
+
/**
* IActiveControl interface.
*
* Active controls must implement IActiveControl interface.
*
* @author Wei Zhuo <weizhuo[at]gamil[dot]com>
- * @package System
+ * @package Prado
* @since 3.1
*/
interface IActiveControl
diff --git a/framework/IBaseBehavior.php b/framework/IBaseBehavior.php
index 5c55f1f0..fe8d0008 100644
--- a/framework/IBaseBehavior.php
+++ b/framework/IBaseBehavior.php
@@ -10,16 +10,18 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System
+ * @package Prado
*/
+namespace Prado;
+
/**
* IBaseBehavior interface is the base behavior class from which all other
* behaviors types are derived
*
* @author Brad Anderson <javalizard@mac.com>
* @version $Id$
- * @package System
+ * @package Prado
* @since 3.2.3
*/
interface IBaseBehavior {
diff --git a/framework/IBehavior.php b/framework/IBehavior.php
index 354fb94d..ea5006fd 100644
--- a/framework/IBehavior.php
+++ b/framework/IBehavior.php
@@ -10,9 +10,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System
+ * @package Prado
*/
+namespace Prado;
+
/**
* IBehavior interfaces is implemented by instance behavior classes.
*
@@ -22,7 +24,7 @@
*
* @author Brad Anderson <javalizard@mac.com>
* @version $Id$
- * @package System
+ * @package Prado
* @since 3.2.3
*/
interface IBehavior extends IBaseBehavior
diff --git a/framework/IBindable.php b/framework/IBindable.php
index e6ee32fa..073408ab 100644
--- a/framework/IBindable.php
+++ b/framework/IBindable.php
@@ -6,16 +6,18 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System
+ * @package Prado
*/
+namespace Prado;
+
/**
* IBindable interface.
*
* This interface must be implemented by classes that are capable of performing databinding.
*
* @author Qiang Xue <qiang.xue@gmail.com>
- * @package System
+ * @package Prado
* @since 3.0
*/
interface IBindable
diff --git a/framework/ICache.php b/framework/ICache.php
index d50694dd..3a5a5a1e 100644
--- a/framework/ICache.php
+++ b/framework/ICache.php
@@ -6,9 +6,10 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System
+ * @package Prado
*/
+namespace Prado;
/**
* ICache interface.
@@ -16,7 +17,7 @@
* This interface must be implemented by cache managers.
*
* @author Qiang Xue <qiang.xue@gmail.com>
- * @package System
+ * @package Prado
* @since 3.0
*/
interface ICache
diff --git a/framework/ICacheDependency.php b/framework/ICacheDependency.php
index c584e891..06157f88 100644
--- a/framework/ICacheDependency.php
+++ b/framework/ICacheDependency.php
@@ -6,9 +6,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System
+ * @package Prado
*/
+namespace Prado;
+
/**
* ICacheDependency interface.
*
@@ -18,7 +20,7 @@
* Classes implementing this interface must support serialization and unserialization.
*
* @author Qiang Xue <qiang.xue@gmail.com>
- * @package System
+ * @package Prado
* @since 3.0
*/
interface ICacheDependency
diff --git a/framework/ICallbackEventHandler.php b/framework/ICallbackEventHandler.php
index 3afb3674..9c12c141 100644
--- a/framework/ICallbackEventHandler.php
+++ b/framework/ICallbackEventHandler.php
@@ -6,9 +6,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System
+ * @package Prado
*/
+namespace Prado;
+
/**
* ICallbackEventHandler interface.
*
@@ -16,7 +18,7 @@
* interface.
*
* @author Wei Zhuo <weizhuo[at]gamil[dot]com>
- * @package System
+ * @package Prado
* @since 3.1
*/
interface ICallbackEventHandler
diff --git a/framework/IClassBehavior.php b/framework/IClassBehavior.php
index 634cb1c4..8ad35fb0 100644
--- a/framework/IClassBehavior.php
+++ b/framework/IClassBehavior.php
@@ -10,9 +10,10 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System
+ * @package Prado
*/
+namespace Prado;
/**
* IClassBehavior interface is implements behaviors across all instances of
@@ -42,7 +43,7 @@
*
* @author Brad Anderson <javalizard@mac.com>
* @version $Id$
- * @package System
+ * @package Prado
* @since 3.2.3
*/
interface IClassBehavior extends IBaseBehavior {
diff --git a/framework/IDataRenderer.php b/framework/IDataRenderer.php
index f8deee8a..370d607f 100644
--- a/framework/IDataRenderer.php
+++ b/framework/IDataRenderer.php
@@ -6,9 +6,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System
+ * @package Prado
*/
+namespace Prado;
+
/**
* IDataRenderer interface.
*
@@ -16,7 +18,7 @@
* this interface must be implemented.
*
* @author Qiang Xue <qiang.xue@gmail.com>
- * @package System
+ * @package Prado
* @since 3.1
*/
interface IDataRenderer
diff --git a/framework/IDynamicMethods.php b/framework/IDynamicMethods.php
index 8a0de9ef..32f87039 100644
--- a/framework/IDynamicMethods.php
+++ b/framework/IDynamicMethods.php
@@ -10,9 +10,10 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System
+ * @package Prado
*/
+namespace Prado;
/**
* IDynamicMethods interface.
@@ -20,7 +21,7 @@
*
* @author Brad Anderson <javalizard@mac.com>
* @version $Id$
- * @package System
+ * @package Prado
* @since 3.2.3
*/
interface IDynamicMethods
diff --git a/framework/IInstanceCheck.php b/framework/IInstanceCheck.php
index 8af12117..cbddcb81 100644
--- a/framework/IInstanceCheck.php
+++ b/framework/IInstanceCheck.php
@@ -10,9 +10,10 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System
+ * @package Prado
*/
+namespace Prado;
/**
* IInstanceCheck This interface allows objects to determine their own
@@ -22,7 +23,7 @@
*
* @author Brad Anderson <javalizard@mac.com>
* @version $Id$
- * @package System
+ * @package Prado
* @since 3.2.3
*/
interface IInstanceCheck {
diff --git a/framework/IModule.php b/framework/IModule.php
index 4d1eaf00..54fa22a3 100644
--- a/framework/IModule.php
+++ b/framework/IModule.php
@@ -6,16 +6,18 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System
+ * @package Prado
*/
+namespace Prado;
+
/**
* IModule interface.
*
* This interface must be implemented by application modules.
*
* @author Qiang Xue <qiang.xue@gmail.com>
- * @package System
+ * @package Prado
* @since 3.0
*/
interface IModule
diff --git a/framework/IRenderable.php b/framework/IRenderable.php
index f455097e..3283ddfc 100644
--- a/framework/IRenderable.php
+++ b/framework/IRenderable.php
@@ -6,9 +6,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System
+ * @package Prado
*/
+namespace Prado;
+
/**
* IRenderable interface.
*
@@ -16,7 +18,7 @@
* to end-users.
*
* @author Qiang Xue <qiang.xue@gmail.com>
- * @package System
+ * @package Prado
* @since 3.0
*/
interface IRenderable
diff --git a/framework/IService.php b/framework/IService.php
index 5cdbbcff..6465f5cc 100644
--- a/framework/IService.php
+++ b/framework/IService.php
@@ -6,16 +6,18 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System
+ * @package Prado
*/
+namespace Prado;
+
/**
* IService interface.
*
* This interface must be implemented by services.
*
* @author Qiang Xue <qiang.xue@gmail.com>
- * @package System
+ * @package Prado
* @since 3.0
*/
interface IService
diff --git a/framework/IStatePersister.php b/framework/IStatePersister.php
index c8ab5f25..f6f6c4f5 100644
--- a/framework/IStatePersister.php
+++ b/framework/IStatePersister.php
@@ -6,9 +6,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System
+ * @package Prado
*/
+namespace Prado;
+
/**
* IStatePersister class.
*
@@ -16,7 +18,7 @@
* {@link TPageStatePersister}, {@link TApplicationStatePersister}.
*
* @author Qiang Xue <qiang.xue@gmail.com>
- * @package System
+ * @package Prado
* @since 3.0
*/
interface IStatePersister
diff --git a/framework/IStyleable.php b/framework/IStyleable.php
index 92cc13ad..255331f9 100644
--- a/framework/IStyleable.php
+++ b/framework/IStyleable.php
@@ -6,16 +6,18 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System
+ * @package Prado
*/
+namespace Prado;
+
/**
* IStyleable interface.
*
* This interface should be implemented by classes that support CSS styles.
*
* @author Qiang Xue <qiang.xue@gmail.com>
- * @package System
+ * @package Prado
* @since 3.1.0
*/
interface IStyleable
diff --git a/framework/ITextWriter.php b/framework/ITextWriter.php
index bc7fa512..9b85cfe8 100644
--- a/framework/ITextWriter.php
+++ b/framework/ITextWriter.php
@@ -6,16 +6,18 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System
+ * @package Prado
*/
+namespace Prado;
+
/**
* ITextWriter interface.
*
* This interface must be implemented by writers.
*
* @author Qiang Xue <qiang.xue@gmail.com>
- * @package System
+ * @package Prado
* @since 3.0
*/
interface ITextWriter
diff --git a/framework/IUser.php b/framework/IUser.php
index b8f7a6f6..893eb5f3 100644
--- a/framework/IUser.php
+++ b/framework/IUser.php
@@ -6,9 +6,10 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System
+ * @package Prado
*/
+namespace Prado;
/**
* IUser interface.
@@ -16,7 +17,7 @@
* This interface must be implemented by user objects.
*
* @author Qiang Xue <qiang.xue@gmail.com>
- * @package System
+ * @package Prado
* @since 3.0
*/
interface IUser
diff --git a/framework/PradoBase.php b/framework/PradoBase.php
index 3eb4d0d6..21c26b6a 100644
--- a/framework/PradoBase.php
+++ b/framework/PradoBase.php
@@ -9,9 +9,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System
+ * @package Prado
*/
+namespace Prado;
+
/**
* Defines the PRADO framework installation path.
*/
@@ -33,7 +35,7 @@ if(!defined('PRADO_CHMOD'))
* rewritten for customization.
*
* @author Qiang Xue <qiang.xue@gmail.com>
- * @package System
+ * @package Prado
* @since 3.0
*/
class PradoBase
diff --git a/framework/TApplication.php b/framework/TApplication.php
index 476fb5e1..f8b5d256 100644
--- a/framework/TApplication.php
+++ b/framework/TApplication.php
@@ -6,9 +6,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System
+ * @package Prado
*/
+namespace Prado;
+
/**
* Includes core interfaces essential for TApplication class
*/
@@ -104,7 +106,7 @@ Prado::using('System.I18N.TGlobalization');
* </code>
*
* @author Qiang Xue <qiang.xue@gmail.com>
- * @package System
+ * @package Prado
* @since 3.0
*/
class TApplication extends TComponent
diff --git a/framework/TApplicationComponent.php b/framework/TApplicationComponent.php
index a906a232..da976549 100644
--- a/framework/TApplicationComponent.php
+++ b/framework/TApplicationComponent.php
@@ -6,9 +6,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System
+ * @package Prado
*/
+namespace Prado;
+
/**
* TApplicationComponent class
*
@@ -27,7 +29,7 @@
* publishing private files: {@link publishAsset} and {@link publishFilePath}.
*
* @author Qiang Xue <qiang.xue@gmail.com>
- * @package System
+ * @package Prado
* @since 3.0
*/
class TApplicationComponent extends TComponent
diff --git a/framework/TApplicationConfiguration.php b/framework/TApplicationConfiguration.php
index 06e894dc..46836bb5 100644
--- a/framework/TApplicationConfiguration.php
+++ b/framework/TApplicationConfiguration.php
@@ -6,9 +6,10 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System
+ * @package Prado
*/
+namespace Prado;
/**
* TApplicationConfiguration class.
@@ -17,7 +18,7 @@
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @author Carl G. Mathisen <carlgmathisen@gmail.com>
- * @package System
+ * @package Prado
* @since 3.0
*/
class TApplicationConfiguration extends TComponent
diff --git a/framework/TApplicationMode.php b/framework/TApplicationMode.php
index 9ce1433c..aab04eef 100644
--- a/framework/TApplicationMode.php
+++ b/framework/TApplicationMode.php
@@ -6,9 +6,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System
+ * @package Prado
*/
+namespace Prado;
+
/**
* TApplicationMode class.
* TApplicationMode defines the possible mode that an application can be set at by
@@ -19,7 +21,7 @@
* - Normal: the application is running in normal production mode.
* - Performance: the application is running in performance mode.
* @author Qiang Xue <qiang.xue@gmail.com>
- * @package System
+ * @package Prado
* @since 3.0.4
*/
class TApplicationMode extends TEnumerable
diff --git a/framework/TApplicationStatePersister.php b/framework/TApplicationStatePersister.php
index b498ac72..1689b816 100644
--- a/framework/TApplicationStatePersister.php
+++ b/framework/TApplicationStatePersister.php
@@ -6,9 +6,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System
+ * @package Prado
*/
+namespace Prado;
+
/**
* TApplicationStatePersister class.
* TApplicationStatePersister provides a file-based persistent storage
@@ -17,7 +19,7 @@
* Cache will be exploited if it is enabled.
*
* @author Qiang Xue <qiang.xue@gmail.com>
- * @package System
+ * @package Prado
* @since 3.0
*/
class TApplicationStatePersister extends TModule implements IStatePersister
diff --git a/framework/TClassBehaviorEventParameter.php b/framework/TClassBehaviorEventParameter.php
index ffa9ba88..65cf6f8f 100644
--- a/framework/TClassBehaviorEventParameter.php
+++ b/framework/TClassBehaviorEventParameter.php
@@ -10,10 +10,10 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System
+ * @package Prado
*/
-
+namespace Prado;
/**
* TClassBehaviorEventParameter class.
@@ -21,7 +21,7 @@
*
* @author Brad Anderson <javalizard@mac.com>
* @version $Id$
- * @package System
+ * @package Prado
* @since 3.2.3
*/
class TClassBehaviorEventParameter extends TEventParameter
diff --git a/framework/TComponent.php b/framework/TComponent.php
index 57ab7003..56e816e4 100644
--- a/framework/TComponent.php
+++ b/framework/TComponent.php
@@ -10,9 +10,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System
+ * @package Prado
*/
+namespace Prado;
+
/**
* TComponent class
*
@@ -276,7 +278,7 @@
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @author Brad Anderson <javalizard@mac.com>
- * @package System
+ * @package Prado
* @since 3.0
*/
class TComponent
diff --git a/framework/TComponentReflection.php b/framework/TComponentReflection.php
index aef99e8c..27ba50b3 100644
--- a/framework/TComponentReflection.php
+++ b/framework/TComponentReflection.php
@@ -10,9 +10,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System
+ * @package Prado
*/
+namespace Prado;
+
/**
* TComponentReflection class.
*
@@ -27,7 +29,7 @@
* </code>
*
* @author Qiang Xue <qiang.xue@gmail.com>
- * @package System
+ * @package Prado
* @since 3.0
*/
class TComponentReflection extends TComponent
diff --git a/framework/TEnumerable.php b/framework/TEnumerable.php
index 8dd42857..45283933 100644
--- a/framework/TEnumerable.php
+++ b/framework/TEnumerable.php
@@ -10,9 +10,10 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System
+ * @package Prado
*/
+namespace Prado;
/**
* TEnumerable class.
@@ -32,7 +33,7 @@
* TTextAlign::Right.
*
* @author Qiang Xue <qiang.xue@gmail.com>
- * @package System
+ * @package Prado
* @since 3.0
*/
class TEnumerable implements Iterator
diff --git a/framework/TEventParameter.php b/framework/TEventParameter.php
index 8ad896b3..4a80b8b0 100644
--- a/framework/TEventParameter.php
+++ b/framework/TEventParameter.php
@@ -10,15 +10,17 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System
+ * @package Prado
*/
+namespace Prado;
+
/**
* TEventParameter class.
* TEventParameter is the base class for all event parameter classes.
*
* @author Qiang Xue <qiang.xue@gmail.com>
- * @package System
+ * @package Prado
* @since 3.0
*/
class TEventParameter extends TComponent
diff --git a/framework/TEventResults.php b/framework/TEventResults.php
index fb8a6074..3ca9b39b 100644
--- a/framework/TEventResults.php
+++ b/framework/TEventResults.php
@@ -10,9 +10,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System
+ * @package Prado
*/
+namespace Prado;
+
class TEventResults extends TEnumerable {
const EVENT_RESULT_FEED_FORWARD=1;
const EVENT_RESULT_FILTER=2;
diff --git a/framework/TJavaScriptLiteral.php b/framework/TJavaScriptLiteral.php
index f38a42a0..56dc6e85 100644
--- a/framework/TJavaScriptLiteral.php
+++ b/framework/TJavaScriptLiteral.php
@@ -10,9 +10,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System
+ * @package Prado
*/
+namespace Prado;
+
/**
* TJavaScriptLiteral class that encloses string literals that are not
* supposed to be escaped by {@link TJavaScript::encode() }
@@ -31,7 +33,7 @@
* $raw=_js($js);
* </code>
*
- * @package System
+ * @package Prado
* @since 3.2.0
*/
class TJavaScriptLiteral
diff --git a/framework/TJavaScriptString.php b/framework/TJavaScriptString.php
index 11e76ec5..76280ff7 100644
--- a/framework/TJavaScriptString.php
+++ b/framework/TJavaScriptString.php
@@ -10,14 +10,16 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System
+ * @package Prado
*/
+namespace Prado;
+
/**
* TJavaScriptString class is an internal class that marks strings that will be
* forcibly encoded when rendered inside a javascript block
*
- * @package System
+ * @package Prado
* @since 3.2.0
*/
class TJavaScriptString extends TJavaScriptLiteral
diff --git a/framework/TModule.php b/framework/TModule.php
index 7c149962..1c4f40b1 100644
--- a/framework/TModule.php
+++ b/framework/TModule.php
@@ -6,9 +6,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System
+ * @package Prado
*/
+namespace Prado;
+
/**
* TModule class.
*
@@ -16,7 +18,7 @@
* used as the basic class for application modules.
*
* @author Qiang Xue <qiang.xue@gmail.com>
- * @package System
+ * @package Prado
* @since 3.0
*/
abstract class TModule extends TApplicationComponent implements IModule
diff --git a/framework/TPropertyValue.php b/framework/TPropertyValue.php
index fab1c966..a920cc4a 100644
--- a/framework/TPropertyValue.php
+++ b/framework/TPropertyValue.php
@@ -10,9 +10,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System
+ * @package Prado
*/
+namespace Prado;
+
/**
* TPropertyValue class
*
@@ -42,7 +44,7 @@
* - enum: enumerable type, represented by an array of strings.
*
* @author Qiang Xue <qiang.xue@gmail.com>
- * @package System
+ * @package Prado
* @since 3.0
*/
class TPropertyValue
diff --git a/framework/TService.php b/framework/TService.php
index 9c51eb5a..c3f40c44 100644
--- a/framework/TService.php
+++ b/framework/TService.php
@@ -6,9 +6,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System
+ * @package Prado
*/
+namespace Prado;
+
/**
* TService class.
*
@@ -16,7 +18,7 @@
* used as the basic class for application services.
*
* @author Qiang Xue <qiang.xue@gmail.com>
- * @package System
+ * @package Prado
* @since 3.0
*/
abstract class TService extends TApplicationComponent implements IService
diff --git a/framework/TShellApplication.php b/framework/TShellApplication.php
index e989ed9f..2add084d 100644
--- a/framework/TShellApplication.php
+++ b/framework/TShellApplication.php
@@ -6,9 +6,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System
+ * @package Prado
*/
+namespace Prado;
+
/**
* TShellApplication class.
*
@@ -28,7 +30,7 @@
* accessibility to resources as the PRADO Web applications.
*
* @author Qiang Xue <qiang.xue@gmail.com>
- * @package System
+ * @package Prado
* @since 3.1.0
*/
class TShellApplication extends TApplication
diff --git a/framework/Util/TBehavior.php b/framework/Util/TBehavior.php
index 56a81a87..83a24b75 100644
--- a/framework/Util/TBehavior.php
+++ b/framework/Util/TBehavior.php
@@ -8,10 +8,12 @@
* @license http://www.yiiframework.com/license/
*/
+namespace Prado\Util;
+
/**
* TBehavior is a convenient base class for behavior classes.
* @author Qiang Xue <qiang.xue@gmail.com>
- * @package System.Util
+ * @package Prado\Util
* @since 3.2.3
*/
class TBehavior extends TComponent implements IBehavior
diff --git a/framework/Util/TBrowserLogRoute.php b/framework/Util/TBrowserLogRoute.php
index 047b393f..7c32de3c 100644
--- a/framework/Util/TBrowserLogRoute.php
+++ b/framework/Util/TBrowserLogRoute.php
@@ -6,16 +6,18 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Util
+ * @package Prado\Util
*/
+namespace Prado\Util;
+
/**
* TBrowserLogRoute class.
*
* TBrowserLogRoute prints selected log messages in the response.
*
* @author Xiang Wei Zhuo <weizhuo[at]gmail[dot]com>
- * @package System.Util
+ * @package Prado\Util
* @since 3.0
*/
class TBrowserLogRoute extends TLogRoute
diff --git a/framework/Util/TCallChain.php b/framework/Util/TCallChain.php
index a6d99a61..03ce60c0 100644
--- a/framework/Util/TCallChain.php
+++ b/framework/Util/TCallChain.php
@@ -8,12 +8,14 @@
* @license http://www.pradosoft.com/license/
*/
+namespace Prado\Util;
+
/**
* TCallChain is a recursive event calling mechanism. This class implements
* the {@link IDynamicMethods} class so that any 'dy' event calls can be caught
* and patched through to the intended recipient
* @author Brad Anderson <javalizard@gmail.com>
- * @package System.Util
+ * @package Prado\Util
* @since 3.2.3
*/
class TCallChain extends TList implements IDynamicMethods
diff --git a/framework/Util/TClassBehavior.php b/framework/Util/TClassBehavior.php
index 03ea0c57..113c9c68 100644
--- a/framework/Util/TClassBehavior.php
+++ b/framework/Util/TClassBehavior.php
@@ -8,10 +8,12 @@
* @license http://www.pradosoft.com/license/
*/
+namespace Prado\Util;
+
/**
* TClassBehavior is a convenient base class for whole class behaviors.
* @author Brad Anderson <javalizard@gmail.com>
- * @package System.Util
+ * @package Prado\Util
* @since 3.2.3
*/
class TClassBehavior extends TComponent implements IClassBehavior
diff --git a/framework/Util/TDataFieldAccessor.php b/framework/Util/TDataFieldAccessor.php
index 1bead02e..35ae5228 100644
--- a/framework/Util/TDataFieldAccessor.php
+++ b/framework/Util/TDataFieldAccessor.php
@@ -6,9 +6,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Util
+ * @package Prado\Util
*/
+namespace Prado\Util;
+
/**
* TDataFieldAccessor class
*
@@ -25,7 +27,7 @@
* then field 'MyValue.MySubValue' will return that method call result.
*
* @author Qiang Xue <qiang.xue@gmail.com>
- * @package System.Util
+ * @package Prado\Util
* @since 3.0
*/
class TDataFieldAccessor
diff --git a/framework/Util/TDateTimeStamp.php b/framework/Util/TDateTimeStamp.php
index 6db04392..d6ad628d 100644
--- a/framework/Util/TDateTimeStamp.php
+++ b/framework/Util/TDateTimeStamp.php
@@ -6,9 +6,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Util
+ * @package Prado\Util
*/
+namespace Prado\Util;
+
/**
* TDateTimeStamp Class
*
@@ -19,7 +21,7 @@
* julian dates anymore.
*
* @author Fabio Bas ctrlaltca[AT]gmail[DOT]com
- * @package System.Util
+ * @package Prado\Util
* @since 3.0.4
* @deprecated since 3.2.1
*/
diff --git a/framework/Util/TDbLogRoute.php b/framework/Util/TDbLogRoute.php
index 9c2c6e31..f78aec88 100644
--- a/framework/Util/TDbLogRoute.php
+++ b/framework/Util/TDbLogRoute.php
@@ -6,9 +6,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Util
+ * @package Prado\Util
*/
+namespace Prado\Util;
+
/**
* TDbLogRoute class
*
@@ -31,7 +33,7 @@
* </code>
*
* @author Qiang Xue <qiang.xue@gmail.com>
- * @package System.Util
+ * @package Prado\Util
* @since 3.1.2
*/
class TDbLogRoute extends TLogRoute
diff --git a/framework/Util/TEmailLogRoute.php b/framework/Util/TEmailLogRoute.php
index 11a8d292..64c05ef6 100644
--- a/framework/Util/TEmailLogRoute.php
+++ b/framework/Util/TEmailLogRoute.php
@@ -6,9 +6,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Util
+ * @package Prado\Util
*/
+namespace Prado\Util;
+
/**
* TEmailLogRoute class.
*
@@ -18,7 +20,7 @@
* {@link setSentFrom SentFrom} address.
*
* @author Qiang Xue <qiang.xue@gmail.com>
- * @package System.Util
+ * @package Prado\Util
* @since 3.0
*/
/**
@@ -30,7 +32,7 @@
* {@link setSentFrom SentFrom} address.
*
* @author Qiang Xue <qiang.xue@gmail.com>
- * @package System.Util
+ * @package Prado\Util
* @since 3.0
*/
class TEmailLogRoute extends TLogRoute
diff --git a/framework/Util/TFileLogRoute.php b/framework/Util/TFileLogRoute.php
index 9191235d..19fcd9b4 100644
--- a/framework/Util/TFileLogRoute.php
+++ b/framework/Util/TFileLogRoute.php
@@ -6,9 +6,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Util
+ * @package Prado\Util
*/
+namespace Prado\Util;
+
/**
* TFileLogRoute class.
*
@@ -22,7 +24,7 @@
* specifies how many files to be kept.
*
* @author Qiang Xue <qiang.xue@gmail.com>
- * @package System.Util
+ * @package Prado\Util
* @since 3.0
*/
class TFileLogRoute extends TLogRoute
diff --git a/framework/Util/TFirePhpLogRoute.php b/framework/Util/TFirePhpLogRoute.php
index 0ac19f95..371ebcc8 100644
--- a/framework/Util/TFirePhpLogRoute.php
+++ b/framework/Util/TFirePhpLogRoute.php
@@ -6,9 +6,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Util
+ * @package Prado\Util
*/
+namespace Prado\Util;
+
/**
* TFirePhpLogRoute class.
*
@@ -18,7 +20,7 @@
* {@link http://www.firephp.org/ FirePHP Website}
*
* @author Yves Berkholz <godzilla80[at]gmx[dot]net>
- * @package System.Util
+ * @package Prado\Util
* @since 3.1.5
*/
class TFirePhpLogRoute extends TLogRoute
diff --git a/framework/Util/TFirebugLogRoute.php b/framework/Util/TFirebugLogRoute.php
index 4493e6f6..53b6d9cd 100644
--- a/framework/Util/TFirebugLogRoute.php
+++ b/framework/Util/TFirebugLogRoute.php
@@ -6,9 +6,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Util
+ * @package Prado\Util
*/
+namespace Prado\Util;
+
/**
* TFirebugLogRoute class.
*
@@ -17,7 +19,7 @@
* {@link http://www.getfirebug.com/ FireBug Website}
*
* @author Enrico Stahn <mail@enricostahn.com>, Christophe Boulain <Christophe.Boulain@gmail.com>
- * @package System.Util
+ * @package Prado\Util
* @since 3.1.2
*/
class TFirebugLogRoute extends TBrowserLogRoute
diff --git a/framework/Util/TJsonRpcClient.php b/framework/Util/TJsonRpcClient.php
index 1a8dbba4..ca7e0fc3 100644
--- a/framework/Util/TJsonRpcClient.php
+++ b/framework/Util/TJsonRpcClient.php
@@ -5,9 +5,11 @@
* @copyright 2010 Bigpoint GmbH
* @license http://www.pradosoft.com/license/
* @since 3.2
- * @package System.Util
+ * @package Prado\Util
*/
+namespace Prado\Util;
+
/**
* TJsonRpcClient class
*
@@ -24,7 +26,7 @@
*
* @author Robin J. Rogge <rrogge@bigpoint.net>
* @version $Id$
- * @package System.Util
+ * @package Prado\Util
* @since 3.2
*/
diff --git a/framework/Util/TLogRoute.php b/framework/Util/TLogRoute.php
index 10222c01..9a2d5699 100644
--- a/framework/Util/TLogRoute.php
+++ b/framework/Util/TLogRoute.php
@@ -6,9 +6,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Util
+ * @package Prado\Util
*/
+namespace Prado\Util;
+
/**
* TLogRoute class.
*
@@ -27,7 +29,7 @@
* satisfying both filter conditions will they be returned.
*
* @author Qiang Xue <qiang.xue@gmail.com>
- * @package System.Util
+ * @package Prado\Util
* @since 3.0
*/
abstract class TLogRoute extends TApplicationComponent
diff --git a/framework/Util/TLogRouter.php b/framework/Util/TLogRouter.php
index ce61b4a4..cbbfc434 100644
--- a/framework/Util/TLogRouter.php
+++ b/framework/Util/TLogRouter.php
@@ -6,9 +6,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Util
+ * @package Prado\Util
*/
+namespace Prado\Util;
+
Prado::using('System.Data.TDbConnection');
/**
@@ -35,7 +37,7 @@ Prado::using('System.Data.TDbConnection');
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @author Carl G. Mathisen <carlgmathisen@gmail.com>
- * @package System.Util
+ * @package Prado\Util
* @since 3.0
*/
class TLogRouter extends TModule
diff --git a/framework/Util/TLogger.php b/framework/Util/TLogger.php
index 6fd12ccf..2397704f 100644
--- a/framework/Util/TLogger.php
+++ b/framework/Util/TLogger.php
@@ -6,9 +6,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Util
+ * @package Prado\Util
*/
+namespace Prado\Util;
+
/**
* TLogger class.
*
@@ -17,7 +19,7 @@
* log categories, and by control.
*
* @author Qiang Xue <qiang.xue@gmail.com>
- * @package System.Util
+ * @package Prado\Util
* @since 3.0
*/
class TLogger extends TComponent
diff --git a/framework/Util/TParameterModule.php b/framework/Util/TParameterModule.php
index 84616c63..1ca1a5cf 100644
--- a/framework/Util/TParameterModule.php
+++ b/framework/Util/TParameterModule.php
@@ -6,9 +6,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Util
+ * @package Prado\Util
*/
+namespace Prado\Util;
+
/**
* TParameterModule class
*
@@ -40,7 +42,7 @@
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @author Carl G. Mathisen <carlgmathisen@gmail.com>
- * @package System.Util
+ * @package Prado\Util
* @since 3.0
*/
class TParameterModule extends TModule
diff --git a/framework/Util/TRpcClient.php b/framework/Util/TRpcClient.php
index ec0da4e2..0b78906d 100644
--- a/framework/Util/TRpcClient.php
+++ b/framework/Util/TRpcClient.php
@@ -5,9 +5,10 @@
* @copyright 2010 Bigpoint GmbH
* @license http://www.pradosoft.com/license/
* @since 3.2
- * @package System.Util
+ * @package Prado\Util
*/
+namespace Prado\Util;
/**
* TRpcClient class
@@ -41,7 +42,7 @@
*
* @author Robin J. Rogge <rrogge@bigpoint.net>
* @version $Id$
- * @package System.Util
+ * @package Prado\Util
* @since 3.2
*/
diff --git a/framework/Util/TRpcClientRequestException.php b/framework/Util/TRpcClientRequestException.php
index ce0cc53a..e55947c8 100644
--- a/framework/Util/TRpcClientRequestException.php
+++ b/framework/Util/TRpcClientRequestException.php
@@ -5,9 +5,11 @@
* @copyright 2010 Bigpoint GmbH
* @license http://www.pradosoft.com/license/
* @since 3.2
- * @package System.Util
+ * @package Prado\Util
*/
+namespace Prado\Util;
+
/**
* TRpcClientRequestException class
*
@@ -16,7 +18,7 @@
*
* @author Robin J. Rogge <rrogge@bigpoint.net>
* @version $Id$
- * @package System.Util
+ * @package Prado\Util
* @since 3.2
*/
diff --git a/framework/Util/TRpcClientResponseException.php b/framework/Util/TRpcClientResponseException.php
index 010e4b81..1e0dc1ac 100644
--- a/framework/Util/TRpcClientResponseException.php
+++ b/framework/Util/TRpcClientResponseException.php
@@ -5,9 +5,11 @@
* @copyright 2010 Bigpoint GmbH
* @license http://www.pradosoft.com/license/
* @since 3.2
- * @package System.Util
+ * @package Prado\Util
*/
+namespace Prado\Util;
+
/**
* TRpcClientResponseException class
*
@@ -15,7 +17,7 @@
*
* @author Robin J. Rogge <rrogge@bigpoint.net>
* @version $Id$
- * @package System.Util
+ * @package Prado\Util
* @since 3.2
*/
diff --git a/framework/Util/TRpcClientTypesEnumerable.php b/framework/Util/TRpcClientTypesEnumerable.php
index 506c4fce..eedca24c 100644
--- a/framework/Util/TRpcClientTypesEnumerable.php
+++ b/framework/Util/TRpcClientTypesEnumerable.php
@@ -5,15 +5,17 @@
* @copyright 2010 Bigpoint GmbH
* @license http://www.pradosoft.com/license/
* @since 3.2
- * @package System.Util
+ * @package Prado\Util
*/
+namespace Prado\Util;
+
/**
* TRpcClientTypesEnumerable class
*
* @author Robin J. Rogge <rrogge@bigpoint.net>
* @version $Id$
- * @package System.Util
+ * @package Prado\Util
* @since 3.2
*/
diff --git a/framework/Util/TSimpleDateFormatter.php b/framework/Util/TSimpleDateFormatter.php
index 18e71529..5577e0e5 100644
--- a/framework/Util/TSimpleDateFormatter.php
+++ b/framework/Util/TSimpleDateFormatter.php
@@ -6,9 +6,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Util
+ * @package Prado\Util
*/
+namespace Prado\Util;
+
/**
* TSimpleDateFormatter class.
*
@@ -39,7 +41,7 @@
* </code>
*
* @author Wei Zhuo <weizhuo[at]gmail[dot]com>
- * @package System.Util
+ * @package Prado\Util
* @since 3.0
*/
class TSimpleDateFormatter
diff --git a/framework/Util/TVarDumper.php b/framework/Util/TVarDumper.php
index c89b205a..1040ca92 100644
--- a/framework/Util/TVarDumper.php
+++ b/framework/Util/TVarDumper.php
@@ -6,9 +6,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Util
+ * @package Prado\Util
*/
+namespace Prado\Util;
+
/**
* TVarDumper class.
*
@@ -23,7 +25,7 @@
* </code>
*
* @author Qiang Xue <qiang.xue@gmail.com>
- * @package System.Util
+ * @package Prado\Util
* @since 3.0
*/
class TVarDumper
diff --git a/framework/Util/TXmlRpcClient.php b/framework/Util/TXmlRpcClient.php
index de11d6a2..71c58a10 100644
--- a/framework/Util/TXmlRpcClient.php
+++ b/framework/Util/TXmlRpcClient.php
@@ -5,9 +5,11 @@
* @copyright 2010 Bigpoint GmbH
* @license http://www.pradosoft.com/license/
* @since 3.2
- * @package System.Util
+ * @package Prado\Util
*/
+namespace Prado\Util;
+
/**
* TXmlRpcClient class
*
@@ -22,7 +24,7 @@
*
* @author Robin J. Rogge <rrogge@bigpoint.net>
* @version $Id$
- * @package System.Util
+ * @package Prado\Util
* @since 3.2
*/
diff --git a/framework/Wsat/TWsatARGenerator.php b/framework/Wsat/TWsatARGenerator.php
index da004b1f..21c4e2e4 100644
--- a/framework/Wsat/TWsatARGenerator.php
+++ b/framework/Wsat/TWsatARGenerator.php
@@ -7,8 +7,11 @@
* @license http://www.pradosoft.com/license/
* @version $Id$
* @since 3.3
- * @package Wsat
+ * @package Prado\Wsat
*/
+
+namespace Prado\Wsat;
+
Prado::using("System.Wsat.TWsatBaseGenerator");
class TWsatARGenerator extends TWsatBaseGenerator
diff --git a/framework/Wsat/TWsatBaseGenerator.php b/framework/Wsat/TWsatBaseGenerator.php
index 9aef1dae..c337c292 100644
--- a/framework/Wsat/TWsatBaseGenerator.php
+++ b/framework/Wsat/TWsatBaseGenerator.php
@@ -7,8 +7,11 @@
* @license http://www.pradosoft.com/license/
* @version $Id$
* @since 3.3
- * @package Wsat
+ * @package Prado\Wsat
*/
+
+namespace Prado\Wsat;
+
Prado::using('System.Data.Common.TDbMetaData');
class TWsatBaseGenerator
diff --git a/framework/Wsat/TWsatScaffoldingGenerator.php b/framework/Wsat/TWsatScaffoldingGenerator.php
index 0a240e60..c5a702b0 100644
--- a/framework/Wsat/TWsatScaffoldingGenerator.php
+++ b/framework/Wsat/TWsatScaffoldingGenerator.php
@@ -6,9 +6,12 @@
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
* @version $Id$
- * @since 4.0
- * @package Wsat
+ * @since 3.3
+ * @package Prado\Wsat
*/
+
+namespace Prado\Wsat;
+
Prado::using("System.Wsat.TWsatBaseGenerator");
class TWsatScaffoldingGenerator extends TWsatBaseGenerator
diff --git a/framework/Wsat/TWsatService.php b/framework/Wsat/TWsatService.php
index 3796bd48..798098c4 100644
--- a/framework/Wsat/TWsatService.php
+++ b/framework/Wsat/TWsatService.php
@@ -7,9 +7,11 @@
* @license http://www.pradosoft.com/license/
* @version $Id$
* @since 3.3
- * @package Wsat
+ * @package Prado\Wsat
*/
+namespace Prado\Wsat;
+
/**
* TWsatService class
*
diff --git a/framework/Wsat/pages/TWsatGenerateAR.php b/framework/Wsat/pages/TWsatGenerateAR.php
index 2e7bab06..5ba8b87b 100644
--- a/framework/Wsat/pages/TWsatGenerateAR.php
+++ b/framework/Wsat/pages/TWsatGenerateAR.php
@@ -7,8 +7,11 @@
* @license http://www.pradosoft.com/license/
* @version $Id$
* @since 3.3
- * @package Wsat.pages
+ * @package Prado\Wsat\pages
*/
+
+namespace Prado\Wsat\pages;
+
Prado::using("System.Wsat.TWsatARGenerator");
class TWsatGenerateAR extends TPage
diff --git a/framework/Wsat/pages/TWsatHome.php b/framework/Wsat/pages/TWsatHome.php
index b4beb07c..b869f9b6 100644
--- a/framework/Wsat/pages/TWsatHome.php
+++ b/framework/Wsat/pages/TWsatHome.php
@@ -7,8 +7,11 @@
* @license http://www.pradosoft.com/license/
* @version $Id$
* @since 3.3
- * @package Wsat.pages
+ * @package Prado\Wsat\pages
*/
+
+namespace Prado\Wsat\pages;
+
Prado::using("System.Wsat.TWsatARGenerator");
class TWsatHome extends TPage
diff --git a/framework/Wsat/pages/TWsatLogin.php b/framework/Wsat/pages/TWsatLogin.php
index 7aa90740..c6242e5e 100644
--- a/framework/Wsat/pages/TWsatLogin.php
+++ b/framework/Wsat/pages/TWsatLogin.php
@@ -7,8 +7,11 @@
* @license http://www.pradosoft.com/license/
* @version $Id$
* @since 3.3
- * @package Wsat.pages
+ * @package Prado\Wsat\pages
*/
+
+namespace Prado\Wsat\pages;
+
class TWsatLogin extends TPage
{
diff --git a/framework/Wsat/pages/TWsatScaffolding.php b/framework/Wsat/pages/TWsatScaffolding.php
index 2dc7d288..1819dc5f 100644
--- a/framework/Wsat/pages/TWsatScaffolding.php
+++ b/framework/Wsat/pages/TWsatScaffolding.php
@@ -7,8 +7,11 @@
* @license http://www.pradosoft.com/license/
* @version $Id$
* @since 3.3
- * @package Wsat.pages
+ * @package Prado\Wsat\pages
*/
+
+namespace Prado\Wsat\pages;
+
Prado::using("System.Wsat.TWsatScaffoldingGenerator");
class TWsatScaffolding extends TPage
diff --git a/framework/Xml/TXmlDocument.php b/framework/Xml/TXmlDocument.php
index 6cce0640..ca19a0cf 100644
--- a/framework/Xml/TXmlDocument.php
+++ b/framework/Xml/TXmlDocument.php
@@ -6,9 +6,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Xml
+ * @package Prado\Xml
*/
+namespace Prado\Xml;
+
/**
* TXmlDocument class.
*
@@ -55,7 +57,7 @@
* </code>
*
* @author Qiang Xue <qiang.xue@gmail.com>
- * @package System.Xml
+ * @package Prado\Xml
* @since 3.0
*/
class TXmlDocument extends TXmlElement
diff --git a/framework/Xml/TXmlElement.php b/framework/Xml/TXmlElement.php
index 2df8308c..6ed1c62f 100644
--- a/framework/Xml/TXmlElement.php
+++ b/framework/Xml/TXmlElement.php
@@ -6,9 +6,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Xml
+ * @package Prado\Xml
*/
+namespace Prado\Xml;
+
/**
* TXmlElement class.
*
@@ -21,7 +23,7 @@
* TBD: xpath
*
* @author Qiang Xue <qiang.xue@gmail.com>
- * @package System.Xml
+ * @package Prado\Xml
* @since 3.0
*/
class TXmlElement extends TComponent
diff --git a/framework/Xml/TXmlElementList.php b/framework/Xml/TXmlElementList.php
index 301f9d1e..f94d0cf1 100644
--- a/framework/Xml/TXmlElementList.php
+++ b/framework/Xml/TXmlElementList.php
@@ -6,9 +6,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Xml
+ * @package Prado\Xml
*/
+namespace Prado\Xml;
+
/**
* TXmlElementList class.
*
@@ -16,7 +18,7 @@
* You may manipulate the collection with the operations defined in {@link TList}.
*
* @author Qiang Xue <qiang.xue@gmail.com>
- * @package System.Xml
+ * @package Prado\Xml
* @since 3.0
*/
class TXmlElementList extends TList
diff --git a/framework/interfaces.php b/framework/interfaces.php
deleted file mode 100644
index 1c2bbc19..00000000
--- a/framework/interfaces.php
+++ /dev/null
@@ -1,367 +0,0 @@
-<?php
-/**
- * Core interfaces essential for TApplication class.
- *
- * @author Qiang Xue <qiang.xue@gmail.com>
- * @link http://www.pradosoft.com/
- * @copyright Copyright &copy; 2005-2014 PradoSoft
- * @license http://www.pradosoft.com/license/
- * @package System
- */
-
-/**
- * IModule interface.
- *
- * This interface must be implemented by application modules.
- *
- * @author Qiang Xue <qiang.xue@gmail.com>
- * @package System
- * @since 3.0
- */
-interface IModule
-{
- /**
- * Initializes the module.
- * @param TXmlElement the configuration for the module
- */
- public function init($config);
- /**
- * @return string ID of the module
- */
- public function getID();
- /**
- * @param string ID of the module
- */
- public function setID($id);
-}
-
-/**
- * IService interface.
- *
- * This interface must be implemented by services.
- *
- * @author Qiang Xue <qiang.xue@gmail.com>
- * @package System
- * @since 3.0
- */
-interface IService
-{
- /**
- * Initializes the service.
- * @param TXmlElement the configuration for the service
- */
- public function init($config);
- /**
- * @return string ID of the service
- */
- public function getID();
- /**
- * @param string ID of the service
- */
- public function setID($id);
- /**
- * @return boolean whether the service is enabled
- */
- public function getEnabled();
- /**
- * @param boolean whether the service is enabled
- */
- public function setEnabled($value);
- /**
- * Runs the service.
- */
- public function run();
-}
-
-/**
- * ITextWriter interface.
- *
- * This interface must be implemented by writers.
- *
- * @author Qiang Xue <qiang.xue@gmail.com>
- * @package System
- * @since 3.0
- */
-interface ITextWriter
-{
- /**
- * Writes a string.
- * @param string string to be written
- */
- public function write($str);
- /**
- * Flushes the content that has been written.
- */
- public function flush();
-}
-
-
-/**
- * IUser interface.
- *
- * This interface must be implemented by user objects.
- *
- * @author Qiang Xue <qiang.xue@gmail.com>
- * @package System
- * @since 3.0
- */
-interface IUser
-{
- /**
- * @return string username
- */
- public function getName();
- /**
- * @param string username
- */
- public function setName($value);
- /**
- * @return boolean if the user is a guest
- */
- public function getIsGuest();
- /**
- * @param boolean if the user is a guest
- */
- public function setIsGuest($value);
- /**
- * @return array list of roles that the user is of
- */
- public function getRoles();
- /**
- * @return array|string list of roles that the user is of. If it is a string, roles are assumed by separated by comma
- */
- public function setRoles($value);
- /**
- * @param string role to be tested
- * @return boolean whether the user is of this role
- */
- public function isInRole($role);
- /**
- * @return string user data that is serialized and will be stored in session
- */
- public function saveToString();
- /**
- * @param string user data that is serialized and restored from session
- * @return IUser the user object
- */
- public function loadFromString($string);
-}
-
-/**
- * IStatePersister class.
- *
- * This interface must be implemented by all state persister classes (such as
- * {@link TPageStatePersister}, {@link TApplicationStatePersister}.
- *
- * @author Qiang Xue <qiang.xue@gmail.com>
- * @package System
- * @since 3.0
- */
-interface IStatePersister
-{
- /**
- * Loads state from a persistent storage.
- * @return mixed the state
- */
- public function load();
- /**
- * Saves state into a persistent storage.
- * @param mixed the state to be saved
- */
- public function save($state);
-}
-
-
-/**
- * ICache interface.
- *
- * This interface must be implemented by cache managers.
- *
- * @author Qiang Xue <qiang.xue@gmail.com>
- * @package System
- * @since 3.0
- */
-interface ICache
-{
- /**
- * Retrieves a value from cache with a specified key.
- * @param string a key identifying the cached value
- * @return mixed the value stored in cache, false if the value is not in the cache or expired.
- */
- public function get($id);
- /**
- * Stores a value identified by a key into cache.
- * If the cache already contains such a key, the existing value and
- * expiration time will be replaced with the new ones.
- *
- * @param string the key identifying the value to be cached
- * @param mixed the value to be cached
- * @param integer the number of seconds in which the cached value will expire. 0 means never expire.
- * @param ICacheDependency dependency of the cached item. If the dependency changes, the item is labelled invalid.
- * @return boolean true if the value is successfully stored into cache, false otherwise
- */
- public function set($id,$value,$expire=0,$dependency=null);
- /**
- * Stores a value identified by a key into cache if the cache does not contain this key.
- * Nothing will be done if the cache already contains the key.
- * @param string the key identifying the value to be cached
- * @param mixed the value to be cached
- * @param integer the number of seconds in which the cached value will expire. 0 means never expire.
- * @param ICacheDependency dependency of the cached item. If the dependency changes, the item is labelled invalid.
- * @return boolean true if the value is successfully stored into cache, false otherwise
- */
- public function add($id,$value,$expire=0,$dependency=null);
- /**
- * Deletes a value with the specified key from cache
- * @param string the key of the value to be deleted
- * @return boolean if no error happens during deletion
- */
- public function delete($id);
- /**
- * Deletes all values from cache.
- * Be careful of performing this operation if the cache is shared by multiple applications.
- */
- public function flush();
-}
-
-/**
- * ICacheDependency interface.
- *
- * This interface must be implemented by classes meant to be used as
- * cache dependencies.
- *
- * Classes implementing this interface must support serialization and unserialization.
- *
- * @author Qiang Xue <qiang.xue@gmail.com>
- * @package System
- * @since 3.0
- */
-interface ICacheDependency
-{
- /**
- * @return boolean whether the dependency has changed. Defaults to false.
- */
- public function getHasChanged();
-}
-
-/**
- * IRenderable interface.
- *
- * This interface must be implemented by classes that can be rendered
- * to end-users.
- *
- * @author Qiang Xue <qiang.xue@gmail.com>
- * @package System
- * @since 3.0
- */
-interface IRenderable
-{
- /**
- * Renders the component to end-users.
- * @param ITextWriter writer for the rendering purpose
- */
- public function render($writer);
-}
-
-/**
- * IBindable interface.
- *
- * This interface must be implemented by classes that are capable of performing databinding.
- *
- * @author Qiang Xue <qiang.xue@gmail.com>
- * @package System
- * @since 3.0
- */
-interface IBindable
-{
- /**
- * Performs databinding.
- */
- public function dataBind();
-}
-
-/**
- * IStyleable interface.
- *
- * This interface should be implemented by classes that support CSS styles.
- *
- * @author Qiang Xue <qiang.xue@gmail.com>
- * @package System
- * @since 3.1.0
- */
-interface IStyleable
-{
- /**
- * @return boolean whether the object has defined any style information
- */
- public function getHasStyle();
- /**
- * @return TStyle the object representing the css style of the object
- */
- public function getStyle();
- /**
- * Removes all styles associated with the object
- */
- public function clearStyle();
-}
-
-/**
- * IActiveControl interface.
- *
- * Active controls must implement IActiveControl interface.
- *
- * @author Wei Zhuo <weizhuo[at]gamil[dot]com>
- * @package System
- * @since 3.1
- */
-interface IActiveControl
-{
- /**
- * @return TBaseActiveControl Active control properties.
- */
- public function getActiveControl();
-}
-
-/**
- * ICallbackEventHandler interface.
- *
- * If a control wants to respond to callback event, it must implement this
- * interface.
- *
- * @author Wei Zhuo <weizhuo[at]gamil[dot]com>
- * @package System
- * @since 3.1
- */
-interface ICallbackEventHandler
-{
- /**
- * Raises callback event. The implementation of this function should raise
- * appropriate event(s) (e.g. OnClick, OnCommand) indicating the component
- * is responsible for the callback event.
- * @param TCallbackEventParameter the parameter associated with the callback event
- */
- public function raiseCallbackEvent($eventArgument);
-}
-
-/**
- * IDataRenderer interface.
- *
- * If a control wants to be used a renderer for another data-bound control,
- * this interface must be implemented.
- *
- * @author Qiang Xue <qiang.xue@gmail.com>
- * @package System
- * @since 3.1
- */
-interface IDataRenderer
-{
- /**
- * @return mixed the data bound to this object
- */
- public function getData();
-
- /**
- * @param mixed the data to be bound to this object
- */
- public function setData($value);
-}
diff --git a/framework/prado.php b/framework/prado.php
index 1dd4bb47..a9298756 100644
--- a/framework/prado.php
+++ b/framework/prado.php
@@ -14,9 +14,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System
+ * @package Prado
*/
+namespace Prado;
+
/**
* Includes the PradoBase class file
*/
@@ -31,7 +33,7 @@ if(!class_exists('Prado',false))
* Prado class.
*
* @author Qiang Xue <qiang.xue@gmail.com>
- * @package System
+ * @package Prado
* @since 3.0
*/
class Prado extends PradoBase