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
path: root/lib/user
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-01-25 14:05:00 +0400
committerBjörn Schießle <schiessle@owncloud.com>2013-01-25 14:05:00 +0400
commit9bb8e0583995fff244432bc34820127ef8ff6ac6 (patch)
treee3294e6b26b148d2735aa30d07d167b4ed1c9c64 /lib/user
parent2fee1208eff1911ffcdbba24ea1e8543ed6ec26b (diff)
get all display names
Diffstat (limited to 'lib/user')
-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;
+ }
}