summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--HISTORY1
-rw-r--r--framework/Security/TUserManager.php24
2 files changed, 25 insertions, 0 deletions
diff --git a/HISTORY b/HISTORY
index 4478b26f..6132bbf8 100644
--- a/HISTORY
+++ b/HISTORY
@@ -11,6 +11,7 @@ BUG: Ticket#181 - Unable to change Content-Type in response header if charset is
BUG: Ticket#200 - onClick javascript event triggered twice on CheckBox label (Qiang)
ENH: Ticket#150 - TDataGrid and TDataList now render table section tags (Qiang)
ENH: Ticket#152 - constituent parts of TWizard are exposed (Qiang)
+ENH: Ticket#184 - added TUserManager.Users and Roles properties (Qiang)
ENH: added sanity check to calling event handlers (Qiang)
ENH: added search for quickstart tutorials (Wei)
ENH: added support to property tags for template owner control (Qiang)
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
@@ -124,6 +124,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
*/
public function getUserFile()