aboutsummaryrefslogtreecommitdiffstats
path: root/lib/group/backend.php
diff options
context:
space:
mode:
authorSam Tuke <samtuke@owncloud.com>2013-01-31 16:30:37 +0000
committerSam Tuke <samtuke@owncloud.com>2013-01-31 16:30:37 +0000
commit31e723a907399d7d33a0699da082164055f79b3e (patch)
tree7da079cc3db0a46512da1b02cc19307337d9ce54 /lib/group/backend.php
parentc7b1bdf00e65cca2a42d77fc5f27d0ea69e53be3 (diff)
parent209d599ec5b00c5b92a33e902867fc621e725c93 (diff)
downloadnextcloud-server-31e723a907399d7d33a0699da082164055f79b3e.tar.gz
nextcloud-server-31e723a907399d7d33a0699da082164055f79b3e.zip
Merge github.com:owncloud/core
Conflicts: lib/public/share.php
Diffstat (limited to 'lib/group/backend.php')
-rw-r--r--lib/group/backend.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/group/backend.php b/lib/group/backend.php
index 9ff432d0663..4f6570c3be3 100644
--- a/lib/group/backend.php
+++ b/lib/group/backend.php
@@ -133,5 +133,23 @@ abstract class OC_Group_Backend implements OC_Group_Interface {
public function usersInGroup($gid, $search = '', $limit = -1, $offset = 0) {
return array();
}
+
+ /**
+ * @brief get a list of all display names in a group
+ * @param string $gid
+ * @param string $search
+ * @param int $limit
+ * @param int $offset
+ * @return array with display names (value) and user ids (key)
+ */
+ public function DisplayNamesInGroup($gid, $search = '', $limit = -1, $offset = 0) {
+ $displayNames = '';
+ $users = $this->usersInGroup($gid, $search, $limit, $offset);
+ foreach ( $users as $user ) {
+ $DisplayNames[$user] = $user;
+ }
+
+ return $DisplayNames;
+ }
}