summaryrefslogtreecommitdiff
path: root/framework/Security/TAuthManager.php
diff options
context:
space:
mode:
authorxue <>2005-12-07 00:32:29 +0000
committerxue <>2005-12-07 00:32:29 +0000
commitb4e9f6795206fab6b952f814ccf812677a34c635 (patch)
treee3be7c6031cd947f233d9e6cbcdec813e391f5ef /framework/Security/TAuthManager.php
parentec46fdc945f591e910051aca0457097825afd34c (diff)
Diffstat (limited to 'framework/Security/TAuthManager.php')
-rw-r--r--framework/Security/TAuthManager.php24
1 files changed, 3 insertions, 21 deletions
diff --git a/framework/Security/TAuthManager.php b/framework/Security/TAuthManager.php
index ae3f713f..3bf6964e 100644
--- a/framework/Security/TAuthManager.php
+++ b/framework/Security/TAuthManager.php
@@ -34,17 +34,13 @@ Prado::using('System.Security.TUserManager');
* @package System.Security
* @since 3.0
*/
-class TAuthManager extends TComponent implements IModule
+class TAuthManager extends TModule
{
/**
* GET variable name for return url
*/
const RETURN_URL_VAR='ReturnUrl';
/**
- * @var string module ID
- */
- private $_id;
- /**
* @var boolean if the module has been initialized
*/
private $_initialized=false;
@@ -66,22 +62,6 @@ class TAuthManager extends TComponent implements IModule
private $_skipAuthorization=false;
/**
- * @return string id of this module
- */
- public function getID()
- {
- return $this->_id;
- }
-
- /**
- * @param string id of this module
- */
- public function setID($value)
- {
- $this->_id=$value;
- }
-
- /**
* Initializes this module.
* This method is required by the IModule interface.
* @param TApplication Prado application, can be null
@@ -90,6 +70,8 @@ class TAuthManager extends TComponent implements IModule
*/
public function init($application,$config)
{
+ parent::init($application,$config);
+
if($this->_userManager===null)
throw new TConfigurationException('authmanager_usermanager_required');
if(is_string($this->_userManager))