diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-08-11 10:11:44 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-08-11 10:12:17 +0200 |
commit | bfd72501a19c4352b2a9f220c3f2dfac69346b61 (patch) | |
tree | d07ae35302b38b27ca4c166c5ac443e36c1d7d19 /lib/group.php | |
parent | 110f96df78f1ba4074df59a6c13025dc69a6b26f (diff) | |
download | nextcloud-server-bfd72501a19c4352b2a9f220c3f2dfac69346b61.tar.gz nextcloud-server-bfd72501a19c4352b2a9f220c3f2dfac69346b61.zip |
add OC_Group::usersInGroup() to get a list of all users in a group
Diffstat (limited to 'lib/group.php')
-rw-r--r-- | lib/group.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/group.php b/lib/group.php index 54dc0b6463c..65a23989a27 100644 --- a/lib/group.php +++ b/lib/group.php @@ -243,4 +243,12 @@ class OC_Group { public static function groupExists($gid){ return in_array( $gid, self::getGroups()); } + + /** + * @brief get a list of all users in a group + * @returns array with user ids + */ + public static function usersInGroup($gid){ + return self::$_backend->usersInGroup(); + } } |