diff options
Diffstat (limited to 'framework/Security/TUserManager.php')
-rw-r--r-- | framework/Security/TUserManager.php | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/framework/Security/TUserManager.php b/framework/Security/TUserManager.php index 9da386f0..d9210661 100644 --- a/framework/Security/TUserManager.php +++ b/framework/Security/TUserManager.php @@ -189,13 +189,9 @@ class TUser extends TComponent implements IUser * @package System.Security
* @since 3.0
*/
-class TUserManager extends TComponent implements IModule
+class TUserManager extends TModule
{
/**
- * @var string id of this module
- */
- private $_id;
- /**
* @var array list of users managed by this module
*/
private $_users=array();
@@ -221,6 +217,8 @@ class TUserManager extends TComponent implements IModule */
public function init($application,$config)
{
+ parent::init($application,$config);
+
foreach($config->getElementsByTagName('user') as $node)
$this->_users[strtolower($node->getAttribute('name'))]=$node->getAttribute('password');
foreach($config->getElementsByTagName('role') as $node)
@@ -234,22 +232,6 @@ class TUserManager extends TComponent implements IModule }
/**
- * @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;
- }
-
- /**
* @return string guest name, defaults to 'Guest'
*/
public function getGuestName()
|