Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-08-11 12:11:44 +0400
committerRobin Appelman <icewind1991@gmail.com>2011-08-11 12:12:17 +0400
commitbfd72501a19c4352b2a9f220c3f2dfac69346b61 (patch)
treed07ae35302b38b27ca4c166c5ac443e36c1d7d19 /lib/group.php
parent110f96df78f1ba4074df59a6c13025dc69a6b26f (diff)
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.php8
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();
+ }
}