diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-04-19 00:20:09 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-04-20 13:15:45 +0200 |
commit | 0a594cd3a5554dcb518fd48978fad2d6a6546122 (patch) | |
tree | 4348222606373d338f66d3ff65f51dee86920764 /lib/public/user.php | |
parent | cdf82909b8225a885fbf92b78208fb1fe258853e (diff) | |
download | nextcloud-server-0a594cd3a5554dcb518fd48978fad2d6a6546122.tar.gz nextcloud-server-0a594cd3a5554dcb518fd48978fad2d6a6546122.zip |
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 c21a4b01ea5..24dd7690e3f 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 ) { |