aboutsummaryrefslogtreecommitdiffstats
path: root/lib/user/backend.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/user/backend.php')
-rw-r--r--lib/user/backend.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/user/backend.php b/lib/user/backend.php
index 47c92f5fe7b..5823e390406 100644
--- a/lib/user/backend.php
+++ b/lib/user/backend.php
@@ -131,4 +131,19 @@ abstract class OC_User_Backend implements OC_User_Interface {
public function getDisplayName($uid) {
return $uid;
}
+
+ /**
+ * @brief Get a list of all display names
+ * @returns array with all displayNames and the correspondig uids
+ *
+ * Get a list of all display names.
+ */
+ public function getDisplayNames($search = '', $limit = null, $offset = null) {
+ $displayNames = array();
+ $users = $this->getUsers($search, $limit, $offset);
+ foreach ( $users as $user) {
+ $displayNames[$user] = $user;
+ }
+ return $displayNames;
+ }
}