summaryrefslogtreecommitdiffstats
path: root/lib/public/user.php
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-01-24 13:07:59 +0100
committerBjörn Schießle <schiessle@owncloud.com>2013-01-24 13:07:59 +0100
commitd16574f0702d7bafa35b27ed8961580ad0a671ae (patch)
treec859da65474e37a7c2c537096dbebc2d86ba9b63 /lib/public/user.php
parentf9a9fc5670505c4b3af9ca7b1294730e00330a3b (diff)
downloadnextcloud-server-d16574f0702d7bafa35b27ed8961580ad0a671ae.tar.gz
nextcloud-server-d16574f0702d7bafa35b27ed8961580ad0a671ae.zip
new branch which introduces display names
first commit with some infrastructure code
Diffstat (limited to 'lib/public/user.php')
-rw-r--r--lib/public/user.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/public/user.php b/lib/public/user.php
index 204d8e4c0f1..2d22bdd96c8 100644
--- a/lib/public/user.php
+++ b/lib/public/user.php
@@ -51,7 +51,15 @@ class User {
public static function getUsers($search = '', $limit = null, $offset = null) {
return \OC_USER::getUsers();
}
-
+
+ /**
+ * @brief get the user display name of the user currently logged in.
+ * @return string display name
+ */
+ public static function getDisplayName() {
+ return \OC_USER::getDisplayName();
+ }
+
/**
* @brief Check if the user is logged in
* @returns true/false