summaryrefslogtreecommitdiffstats
path: root/lib/group.php
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-07-30 20:20:46 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-08-11 16:25:27 -0400
commit8d1eb674ec37651aa8b67eec51de6a9f08523fd9 (patch)
tree8f90e49d7031859d568750977a3949325a0679bb /lib/group.php
parentbaa0b4d530db8a585692c222d5f5cf185438c68a (diff)
downloadnextcloud-server-8d1eb674ec37651aa8b67eec51de6a9f08523fd9.tar.gz
nextcloud-server-8d1eb674ec37651aa8b67eec51de6a9f08523fd9.zip
Add search, limit, and offset parameters to getUsers() and getGroups()
Diffstat (limited to 'lib/group.php')
-rw-r--r--lib/group.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/group.php b/lib/group.php
index 7b137f0f8f1..a3bdbf9e003 100644
--- a/lib/group.php
+++ b/lib/group.php
@@ -237,10 +237,10 @@ class OC_Group {
*
* Returns a list with all groups
*/
- public static function getGroups(){
- $groups=array();
- foreach(self::$_usedBackends as $backend){
- $groups=array_merge($backend->getGroups(),$groups);
+ public static function getGroups($search = '', $limit = 10, $offset = 0) {
+ $groups = array();
+ foreach (self::$_usedBackends as $backend) {
+ $groups = array_merge($backend->getGroups($search, $limit, $offset), $groups);
}
asort($groups);
return $groups;