diff options
author | Björn Schießle <schiessle@owncloud.com> | 2013-01-25 11:05:00 +0100 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2013-01-25 11:05:00 +0100 |
commit | 9bb8e0583995fff244432bc34820127ef8ff6ac6 (patch) | |
tree | e3294e6b26b148d2735aa30d07d167b4ed1c9c64 /lib/user | |
parent | 2fee1208eff1911ffcdbba24ea1e8543ed6ec26b (diff) | |
download | nextcloud-server-9bb8e0583995fff244432bc34820127ef8ff6ac6.tar.gz nextcloud-server-9bb8e0583995fff244432bc34820127ef8ff6ac6.zip |
get all display names
Diffstat (limited to 'lib/user')
-rw-r--r-- | lib/user/backend.php | 15 |
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;
+ } } |