diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2018-03-28 08:23:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-28 08:23:57 +0200 |
commit | b2e34167eb3fa3e6fdfa4ec13353a901e0725ebd (patch) | |
tree | 88a923842ad876ab180950e70eb8641e540bcdea /lib/private/legacy | |
parent | 1e13b3a8faacdd5d1a90573d12aca8fca5b5d7ae (diff) | |
parent | 74f0e3723327fbfb1cd7a96865019ff791b41593 (diff) | |
download | nextcloud-server-b2e34167eb3fa3e6fdfa4ec13353a901e0725ebd.tar.gz nextcloud-server-b2e34167eb3fa3e6fdfa4ec13353a901e0725ebd.zip |
Merge pull request #8976 from nextcloud/dep_user_code
Remove deprecated functions from OCP\User
Diffstat (limited to 'lib/private/legacy')
-rw-r--r-- | lib/private/legacy/user.php | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/lib/private/legacy/user.php b/lib/private/legacy/user.php index 8f342281adb..9c877f22a46 100644 --- a/lib/private/legacy/user.php +++ b/lib/private/legacy/user.php @@ -312,6 +312,8 @@ class OC_User { * * @param string $uid * @return string|bool uid or false + * @deprecated 8.1.0 fetch \OCP\IUser (has getDisplayName()) by using method + * get() of \OCP\IUserManager - \OC::$server->getUserManager() */ public static function getDisplayName($uid = null) { if ($uid) { @@ -367,25 +369,6 @@ class OC_User { } /** - * Get a list of all users - * - * @return array an array of all uids - * - * Get a list of all users. - * @param string $search - * @param integer $limit - * @param integer $offset - */ - public static function getUsers($search = '', $limit = null, $offset = null) { - $users = \OC::$server->getUserManager()->search($search, $limit, $offset); - $uids = array(); - foreach ($users as $user) { - $uids[] = $user->getUID(); - } - return $uids; - } - - /** * Get a list of all users display name * * @param string $search |