diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-07-30 20:20:46 -0400 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2012-08-11 16:25:27 -0400 |
commit | 8d1eb674ec37651aa8b67eec51de6a9f08523fd9 (patch) | |
tree | 8f90e49d7031859d568750977a3949325a0679bb /lib/group.php | |
parent | baa0b4d530db8a585692c222d5f5cf185438c68a (diff) | |
download | nextcloud-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.php | 8 |
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; |