summaryrefslogtreecommitdiff
path: root/modules/gallery/libraries/Identity.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-10-16 07:41:33 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-10-16 08:55:26 -0700
commitbc241e44c2e4d10ac19ccc32a40c90426672d963 (patch)
treeaade0e13346a059c061e2f2f4a767e25a45fe17b /modules/gallery/libraries/Identity.php
parent00eacd659f27df9c13246c510057c4f42c8866a2 (diff)
Cleanup merge of user/group helpers into Identity interface. Reduce redundant code in the user module and remove references to the Identity helper from the user module as the user module should be able to access things directly. Simplify the get_user_list api method to just accept an array of ids to return user objects for.
Diffstat (limited to 'modules/gallery/libraries/Identity.php')
-rw-r--r--modules/gallery/libraries/Identity.php18
1 files changed, 2 insertions, 16 deletions
diff --git a/modules/gallery/libraries/Identity.php b/modules/gallery/libraries/Identity.php
index 229d0da9..fb553de6 100644
--- a/modules/gallery/libraries/Identity.php
+++ b/modules/gallery/libraries/Identity.php
@@ -191,22 +191,8 @@ class Identity_Core {
/**
* @see Identity_Driver::get_user_list.
*/
- static function get_user_list($filter=array()) {
- return self::instance()->driver->get_user_list($filter);
- }
-
- /**
- * @see Identity_Driver::get_group_list.
- */
- static function get_group_list($filter=array()) {
- return self::instance()->driver->get_group_list($filter);
- }
-
- /**
- * @see Identity_Driver::get_edit_rules.
- */
- static function get_edit_rules($object_type) {
- return self::instance()->driver->get_edit_rules($object_type);
+ static function get_user_list($ids) {
+ return self::instance()->driver->get_user_list($ids);
}
static function get_login_form($url) {