From ce220e042d0eca45e5dc1226ea04c7ec68dd71f8 Mon Sep 17 00:00:00 2001 From: xue <> Date: Tue, 30 May 2006 19:27:00 +0000 Subject: Fixed #184. --- framework/Security/TUserManager.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'framework/Security/TUserManager.php') diff --git a/framework/Security/TUserManager.php b/framework/Security/TUserManager.php index 45e55bd7..6b10fa8b 100644 --- a/framework/Security/TUserManager.php +++ b/framework/Security/TUserManager.php @@ -123,6 +123,30 @@ class TUserManager extends TModule implements IUserManager } } + /** + * Returns an array of all users. + * Each array element represents a single user. + * The array key is the username in lower case, and the array value is the + * corresponding user password. + * @return array list of users + */ + public function getUsers() + { + return $this->_users; + } + + /** + * Returns an array of user role information. + * Each array element represents the roles for a single user. + * The array key is the username in lower case, and the array value is + * the roles (represented as an array) that the user is in. + * @return array list of user role information + */ + public function getRoles() + { + return $this->_roles; + } + /** * @return string the full path to the file storing user/role information */ -- cgit v1.2.3