From b927e32fa14869bc3a48d1fba6b2a161b9606270 Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Wed, 21 Jan 2015 09:21:46 +0100 Subject: Add namespaces: Exceptions, I18N, Security --- framework/Security/IUserManager.php | 6 ++++-- framework/Security/TAuthManager.php | 6 ++++-- framework/Security/TAuthorizationRule.php | 7 +++++-- framework/Security/TAuthorizationRuleCollection.php | 5 +++-- framework/Security/TDbUser.php | 5 +++-- framework/Security/TDbUserManager.php | 6 ++++-- framework/Security/TSecurityManager.php | 5 +++-- framework/Security/TSecurityManagerValidationMode.php | 6 ++++-- framework/Security/TUser.php | 6 ++++-- framework/Security/TUserManager.php | 6 ++++-- framework/Security/TUserManagerPasswordMode.php | 6 ++++-- 11 files changed, 42 insertions(+), 22 deletions(-) (limited to 'framework/Security') diff --git a/framework/Security/IUserManager.php b/framework/Security/IUserManager.php index 0ca65929..3e23c2e7 100644 --- a/framework/Security/IUserManager.php +++ b/framework/Security/IUserManager.php @@ -6,9 +6,11 @@ * @link http://www.pradosoft.com/ * @copyright Copyright © 2005-2014 PradoSoft * @license http://www.pradosoft.com/license/ - * @package System.Security + * @package Prado\Security */ +namespace Prado\Security; + /** * IUserManager interface * @@ -17,7 +19,7 @@ * and {@link TUser}. * * @author Qiang Xue - * @package System.Security + * @package Prado\Security * @since 3.0 */ interface IUserManager diff --git a/framework/Security/TAuthManager.php b/framework/Security/TAuthManager.php index 2bf6a5b1..be83b695 100644 --- a/framework/Security/TAuthManager.php +++ b/framework/Security/TAuthManager.php @@ -6,9 +6,11 @@ * @link http://www.pradosoft.com/ * @copyright Copyright © 2005-2014 PradoSoft * @license http://www.pradosoft.com/license/ - * @package System.Security + * @package Prado\Security */ +namespace Prado\Security; + /** * Using IUserManager interface */ @@ -36,7 +38,7 @@ Prado::using('System.Security.IUserManager'); * * * @author Qiang Xue - * @package System.Security + * @package Prado\Security * @since 3.0 */ class TAuthManager extends TModule diff --git a/framework/Security/TAuthorizationRule.php b/framework/Security/TAuthorizationRule.php index 6da784c7..ce0835de 100644 --- a/framework/Security/TAuthorizationRule.php +++ b/framework/Security/TAuthorizationRule.php @@ -6,8 +6,11 @@ * @link http://www.pradosoft.com/ * @copyright Copyright © 2005-2014 PradoSoft * @license http://www.pradosoft.com/license/ - * @package System.Security + * @package Prado\Security */ + +namespace Prado\Security; + /** * TAuthorizationRule class * @@ -24,7 +27,7 @@ * IP rules are separated by comma ',' and can contain wild card in the rules (e.g. '192.132.23.33, 192.122.*.*') * * @author Qiang Xue - * @package System.Security + * @package Prado\Security * @since 3.0 */ class TAuthorizationRule extends TComponent diff --git a/framework/Security/TAuthorizationRuleCollection.php b/framework/Security/TAuthorizationRuleCollection.php index d83cb567..a2356a92 100644 --- a/framework/Security/TAuthorizationRuleCollection.php +++ b/framework/Security/TAuthorizationRuleCollection.php @@ -6,9 +6,10 @@ * @link http://www.pradosoft.com/ * @copyright Copyright © 2005-2014 PradoSoft * @license http://www.pradosoft.com/license/ - * @package System.Security + * @package Prado\Security */ +namespace Prado\Security; /** * TAuthorizationRuleCollection class. @@ -16,7 +17,7 @@ * To check if a user is allowed, call {@link isUserAllowed}. * * @author Qiang Xue - * @package System.Security + * @package Prado\Security * @since 3.0 */ class TAuthorizationRuleCollection extends TList diff --git a/framework/Security/TDbUser.php b/framework/Security/TDbUser.php index 0939b41c..8b30e0f3 100644 --- a/framework/Security/TDbUser.php +++ b/framework/Security/TDbUser.php @@ -6,9 +6,10 @@ * @link http://www.pradosoft.com/ * @copyright Copyright © 2005-2014 PradoSoft * @license http://www.pradosoft.com/license/ - * @package System.Security + * @package Prado\Security */ +namespace Prado\Security; /** * TDbUser class @@ -19,7 +20,7 @@ * - {@link createUser()}: creates a new user instance given the username * * @author Qiang Xue - * @package System.Security + * @package Prado\Security * @since 3.1.0 */ abstract class TDbUser extends TUser diff --git a/framework/Security/TDbUserManager.php b/framework/Security/TDbUserManager.php index 88910b9a..4d04ece1 100644 --- a/framework/Security/TDbUserManager.php +++ b/framework/Security/TDbUserManager.php @@ -6,9 +6,11 @@ * @link http://www.pradosoft.com/ * @copyright Copyright © 2005-2014 PradoSoft * @license http://www.pradosoft.com/license/ - * @package System.Security + * @package Prado\Security */ +namespace Prado\Security; + /** * Using IUserManager interface */ @@ -43,7 +45,7 @@ Prado::using('System.Security.TUser'); * which specifies how to establish database connection to retrieve user information. * * @author Qiang Xue - * @package System.Security + * @package Prado\Security * @since 3.1.0 */ class TDbUserManager extends TModule implements IUserManager diff --git a/framework/Security/TSecurityManager.php b/framework/Security/TSecurityManager.php index 2f9ef464..57d2f70a 100644 --- a/framework/Security/TSecurityManager.php +++ b/framework/Security/TSecurityManager.php @@ -6,9 +6,10 @@ * @link http://www.pradosoft.com/ * @copyright Copyright © 2005-2014 PradoSoft * @license http://www.pradosoft.com/license/ - * @package System.Security + * @package Prado\Security */ +namespace Prado\Security; /** * TSecurityManager class @@ -35,7 +36,7 @@ * Note, to use encryption, the PHP Mcrypt extension must be loaded. * * @author Qiang Xue - * @package System.Security + * @package Prado\Security * @since 3.0 */ class TSecurityManager extends TModule diff --git a/framework/Security/TSecurityManagerValidationMode.php b/framework/Security/TSecurityManagerValidationMode.php index fe1086b5..bae56956 100644 --- a/framework/Security/TSecurityManagerValidationMode.php +++ b/framework/Security/TSecurityManagerValidationMode.php @@ -6,9 +6,11 @@ * @link http://www.pradosoft.com/ * @copyright Copyright © 2005-2014 PradoSoft * @license http://www.pradosoft.com/license/ - * @package System.Security + * @package Prado\Security */ +namespace Prado\Security; + /** * TSecurityManagerValidationMode class. * @@ -22,7 +24,7 @@ * - SHA1: an SHA1 hash is generated from the data and used for validation. * * @author Qiang Xue - * @package System.Security + * @package Prado\Security * @since 3.0.4 */ class TSecurityManagerValidationMode extends TEnumerable diff --git a/framework/Security/TUser.php b/framework/Security/TUser.php index 8a229b1a..cf89e46f 100644 --- a/framework/Security/TUser.php +++ b/framework/Security/TUser.php @@ -6,9 +6,11 @@ * @link http://www.pradosoft.com/ * @copyright Copyright © 2005-2014 PradoSoft * @license http://www.pradosoft.com/license/ - * @package System.Security + * @package Prado\Security */ +namespace Prado\Security; + /** * Using IUserManager interface */ @@ -26,7 +28,7 @@ Prado::using('System.Security.IUserManager'); * TUser is meant to be used together with {@link IUserManager}. * * @author Qiang Xue - * @package System.Security + * @package Prado\Security * @since 3.0 */ class TUser extends TComponent implements IUser diff --git a/framework/Security/TUserManager.php b/framework/Security/TUserManager.php index f3cce876..361f0e5b 100644 --- a/framework/Security/TUserManager.php +++ b/framework/Security/TUserManager.php @@ -6,9 +6,11 @@ * @link http://www.pradosoft.com/ * @copyright Copyright © 2005-2014 PradoSoft * @license http://www.pradosoft.com/license/ - * @package System.Security + * @package Prado\Security */ +namespace Prado\Security; + /** * Using TUser class */ @@ -63,7 +65,7 @@ Prado::using('System.Security.TUser'); * * @author Qiang Xue * @author Carl Mathisen - * @package System.Security + * @package Prado\Security * @since 3.0 */ class TUserManager extends TModule implements IUserManager diff --git a/framework/Security/TUserManagerPasswordMode.php b/framework/Security/TUserManagerPasswordMode.php index 8737fb53..4a4493a2 100644 --- a/framework/Security/TUserManagerPasswordMode.php +++ b/framework/Security/TUserManagerPasswordMode.php @@ -6,9 +6,11 @@ * @link http://www.pradosoft.com/ * @copyright Copyright © 2005-2014 PradoSoft * @license http://www.pradosoft.com/license/ - * @package System.Security + * @package Prado\Security */ +namespace Prado\Security; + /** * TUserManagerPasswordMode class. * TUserManagerPasswordMode defines the enumerable type for the possible modes @@ -20,7 +22,7 @@ * - SHA1: the password is recorded as the SHA1 hash value of the original password * * @author Qiang Xue - * @package System.Security + * @package Prado\Security * @since 3.0.4 */ class TUserManagerPasswordMode extends TEnumerable -- cgit v1.2.3