diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-04-21 23:57:49 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-04-21 23:57:49 +0200 |
commit | 40fcc7480c357d313f865967f83d5338f785c96a (patch) | |
tree | a120dc1984831b74205aa08c239c6868fa4eacb8 /lib/public/user.php | |
parent | 9dc12d40d846d54e024812c2c23c402073f8dd03 (diff) | |
parent | 0a594cd3a5554dcb518fd48978fad2d6a6546122 (diff) | |
download | nextcloud-server-40fcc7480c357d313f865967f83d5338f785c96a.tar.gz nextcloud-server-40fcc7480c357d313f865967f83d5338f785c96a.zip |
Merge pull request #15734 from owncloud/add-deprecate-tags
Add @deprecated to all methods with a proper method in \OCP
Diffstat (limited to 'lib/public/user.php')
-rw-r--r-- | lib/public/user.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/public/user.php b/lib/public/user.php index 0b5fb9565e4..e2413e32783 100644 --- a/lib/public/user.php +++ b/lib/public/user.php @@ -61,6 +61,7 @@ class User { * @param int|null $limit * @param int|null $offset * @return array an array of all uids + * @deprecated 8.1.0 use method search() of \OCP\IUserManager - \OC::$server->getUserManager() * @since 5.0.0 */ public static function getUsers( $search = '', $limit = null, $offset = null ) { @@ -71,6 +72,8 @@ class User { * Get the user display name of the user currently logged in. * @param string|null $user user id or null for current user * @return string display name + * @deprecated 8.1.0 fetch \OCP\IUser (has getDisplayName()) by using method + * get() of \OCP\IUserManager - \OC::$server->getUserManager() * @since 5.0.0 */ public static function getDisplayName( $user = null ) { @@ -83,6 +86,7 @@ class User { * @param int|null $limit * @param int|null $offset * @return array an array of all display names (value) and the correspondig uids (key) + * @deprecated 8.1.0 use method searchDisplayName() of \OCP\IUserManager - \OC::$server->getUserManager() * @since 5.0.0 */ public static function getDisplayNames( $search = '', $limit = null, $offset = null ) { @@ -103,6 +107,7 @@ class User { * @param string $uid the username * @param string $excludingBackend (default none) * @return boolean + * @deprecated 8.1.0 use method userExists() of \OCP\IUserManager - \OC::$server->getUserManager() * @since 5.0.0 */ public static function userExists( $uid, $excludingBackend = null ) { |