change order, key -> uid and value -> display name, this way it is also possible to have non-unique display names

This commit is contained in:
Björn Schießle 2013-01-28 13:10:54 +01:00
parent 19024de988
commit 996b5cf368
1 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,7 @@ abstract class OC_User_Backend implements OC_User_Interface {
/**
* @brief Get a list of all display names
* @returns array with all displayNames (key) and the correspondig uids (value)
* @returns array with all displayNames (value) and the correspondig uids (key)
*
* Get a list of all display names and user ids.
*/
@ -142,7 +142,7 @@ abstract class OC_User_Backend implements OC_User_Interface {
$displayNames = array();
$users = $this->getUsers($search, $limit, $offset);
foreach ( $users as $user) {
$displayNames[$user] = $user;
$displayNames[$user] = "foo";
}
return $displayNames;
}