summaryrefslogtreecommitdiff
path: root/framework/Web/Security/TRoles.php
diff options
context:
space:
mode:
authorjrags <>2006-09-19 04:50:28 +0000
committerjrags <>2006-09-19 04:50:28 +0000
commit5da182335ceec1c8ad68047217a33375897f1c1d (patch)
tree4a0263a38b8718c8d6311a6e168911ba6c643b34 /framework/Web/Security/TRoles.php
parent2c8fcb129c45faecd1a480c44f8a1708f768b91d (diff)
Minor changes to the base classes, also adding the empty new login controls
Diffstat (limited to 'framework/Web/Security/TRoles.php')
-rw-r--r--framework/Web/Security/TRoles.php28
1 files changed, 18 insertions, 10 deletions
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 @@
<?php
+/**
+ * TRoles class.
+ * Manages user membership in roles for authorization checking in an PRADO application. This class cannot be inherited.
+ *
+ * @author Jason Ragsdale <jrags@jasrags.net>
+ * @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;
}