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-24 16:07:59 +0400
committerBjörn Schießle <schiessle@owncloud.com>2013-01-24 16:07:59 +0400
commitd16574f0702d7bafa35b27ed8961580ad0a671ae (patch)
treec859da65474e37a7c2c537096dbebc2d86ba9b63 /lib/user
parentf9a9fc5670505c4b3af9ca7b1294730e00330a3b (diff)
new branch which introduces display names
first commit with some infrastructure code
Diffstat (limited to 'lib/user')
-rw-r--r--lib/user/backend.php11
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;
+ }
}