diff options
author | Björn Schießle <schiessle@owncloud.com> | 2013-01-24 13:07:59 +0100 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2013-01-24 13:07:59 +0100 |
commit | d16574f0702d7bafa35b27ed8961580ad0a671ae (patch) | |
tree | c859da65474e37a7c2c537096dbebc2d86ba9b63 /lib/user | |
parent | f9a9fc5670505c4b3af9ca7b1294730e00330a3b (diff) | |
download | nextcloud-server-d16574f0702d7bafa35b27ed8961580ad0a671ae.tar.gz nextcloud-server-d16574f0702d7bafa35b27ed8961580ad0a671ae.zip |
new branch which introduces display names
first commit with some infrastructure code
Diffstat (limited to 'lib/user')
-rw-r--r-- | lib/user/backend.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/user/backend.php b/lib/user/backend.php index 2a95db93690..47c92f5fe7b 100644 --- a/lib/user/backend.php +++ b/lib/user/backend.php @@ -35,6 +35,7 @@ define('OC_USER_BACKEND_CREATE_USER', 0x000001); define('OC_USER_BACKEND_SET_PASSWORD', 0x000010); define('OC_USER_BACKEND_CHECK_PASSWORD', 0x000100); define('OC_USER_BACKEND_GET_HOME', 0x001000); +define('OC_USER_BACKEND_GET_DISPLAYNAME', 0x010000); /** @@ -50,6 +51,7 @@ abstract class OC_User_Backend implements OC_User_Interface { OC_USER_BACKEND_SET_PASSWORD => 'setPassword', OC_USER_BACKEND_CHECK_PASSWORD => 'checkPassword', OC_USER_BACKEND_GET_HOME => 'getHome', + OC_USER_BACKEND_GET_DISPLAYNAME => 'getDisplayName', ); /** @@ -120,4 +122,13 @@ abstract class OC_User_Backend implements OC_User_Interface { public function getHome($uid) { return false; } + + /** + * @brief get display name of the user + * @param $uid user ID of the user + * @return display name + */ + public function getDisplayName($uid) { + return $uid; + } } |