From 5da182335ceec1c8ad68047217a33375897f1c1d Mon Sep 17 00:00:00 2001 From: jrags <> Date: Tue, 19 Sep 2006 04:50:28 +0000 Subject: Minor changes to the base classes, also adding the empty new login controls --- framework/Web/Security/TRoles.php | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) (limited to 'framework/Web/Security/TRoles.php') diff --git a/framework/Web/Security/TRoles.php b/framework/Web/Security/TRoles.php index 45e112c7..5f4c4032 100644 --- a/framework/Web/Security/TRoles.php +++ b/framework/Web/Security/TRoles.php @@ -1,4 +1,13 @@ + * @version $Id: TRoles.php 1398 2006-09-08 19:31:03Z xue $ + * @package System.Web.Security + * @since 3.1 + */ final class TRoles { private static $_ApplicationName; @@ -15,10 +24,9 @@ final class TRoles private static $_MaxCachedResults; private static $_Provider; private static $_Providers; - private static $_s_EnabledSet=false; - private static $_s_Initialized=false; - private static $_s_InitializeException; - private static $_s_lock; + private static $_EnabledSet=false; + private static $_Initialized=false; + private static $_InitializeException; public static function getApplicationName() { @@ -124,7 +132,7 @@ final class TRoles private static function EnsureEnabled() { self::Initialize(); - if (!self::$_s_Initialized) + if (!self::$_Initialized) { throw new TException('Roles_feature_not_enabled'); } @@ -155,20 +163,20 @@ final class TRoles } private static function Initialize() { - if (self::$_s_Initialized) + if (self::$_Initialized) { - if (self::$_s_InitializeException!==null) + if (self::$_InitializeException!==null) { throw new $_s_InitializeException; } } else { - if (self::$_s_Initialized) + if (self::$_Initialized) { - if (self::$_s_InitializeException!==null) + if (self::$_InitializeException!==null) { - throw new $_s_InitializeException; + throw new $_InitializeException; } return; } -- cgit v1.2.3