summaryrefslogtreecommitdiff
path: root/modules/user/helpers
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-10-09 01:12:05 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-10-09 01:27:26 -0700
commit1ee7d24766a3055d4199251f6ce990714b9c3641 (patch)
treea198bb05283f35dc47b6617140ccd1a4531f9f75 /modules/user/helpers
parent00ee91837faf4807fb17dde3272ca8248a9dcd94 (diff)
Add support for the in filter to get_user_list and get_group_list. Convert the notifications to use user::get_user_list instead of accessing the table directly.
Diffstat (limited to 'modules/user/helpers')
-rw-r--r--modules/user/helpers/group.php8
-rw-r--r--modules/user/helpers/user.php8
2 files changed, 14 insertions, 2 deletions
diff --git a/modules/user/helpers/group.php b/modules/user/helpers/group.php
index 2590c7d1..fbc5157d 100644
--- a/modules/user/helpers/group.php
+++ b/modules/user/helpers/group.php
@@ -82,7 +82,13 @@ class group_Core {
$group = ORM::factory("group");
foreach($filter as $method => $args) {
- $group->$method($args);
+ switch ($method) {
+ case "in":
+ $group->in($args[0], $args[1]);
+ break;
+ default:
+ $group->$method($args);
+ }
}
return $group->find_all();
}
diff --git a/modules/user/helpers/user.php b/modules/user/helpers/user.php
index 6a155768..c6a7735b 100644
--- a/modules/user/helpers/user.php
+++ b/modules/user/helpers/user.php
@@ -334,7 +334,13 @@ class user_Core {
$user = ORM::factory("user");
foreach($filter as $method => $args) {
- $user->$method($args);
+ switch ($method) {
+ case "in":
+ $user->in($args[0], $args[1]);
+ break;
+ default:
+ $user->$method($args);
+ }
}
return $user->find_all();
}