IUser¶
-
interface
OCP\IUser¶ - Interface IUser
Implemented by: OC\User\UserSource: lib/public/IUser.php#36
Methods¶
-
public
OCP\IUser::getUID()¶ - get the user id
Source: lib/public/IUser.php#44 Returns: string Since: 8.0.0
-
public
OCP\IUser::getDisplayName()¶ - get the display name for the user, if no specific display name is set it will fallback to the user id
Source: lib/public/IUser.php#52 Returns: string Since: 8.0.0
-
public
OCP\IUser::setDisplayName($displayName)¶ - set the display name for the user
Source: Parameters: - $displayName (string)
Returns: bool
Since: 8.0.0
-
public
OCP\IUser::getLastLogin()¶ - returns the timestamp of the user’s last login or 0 if the user did neverlogin
Source: lib/public/IUser.php#70 Returns: int Since: 8.0.0
-
public
OCP\IUser::updateLastLoginTimestamp()¶ - updates the timestamp of the most recent login of this user
Source: lib/public/IUser.php#76 Since: 8.0.0
-
public
OCP\IUser::delete()¶ - Delete the user
Source: lib/public/IUser.php#84 Returns: bool Since: 8.0.0
-
public
OCP\IUser::setPassword($password, $recoveryPassword=null)¶ - Set the password of the user
Source: Parameters: - $password (string)
- $recoveryPassword (string) for the encryption app to reset encryption keys
Returns: bool
Since: 8.0.0
-
public
OCP\IUser::getHome()¶ - get the users home folder to mount
Source: lib/public/IUser.php#102 Returns: string Since: 8.0.0
-
public
OCP\IUser::getBackendClassName()¶ - Get the name of the backend class the user is connected with
Source: lib/public/IUser.php#110 Returns: string Since: 8.0.0
-
public
OCP\IUser::getBackend()¶ - Get the backend for the current user object
Source: lib/public/IUser.php#118 Returns: \OCP\UserInterfaceSince: 15.0.0
-
public
OCP\IUser::canChangeAvatar()¶ - check if the backend allows the user to change his avatar on Personal page
Source: lib/public/IUser.php#126 Returns: bool Since: 8.0.0
-
public
OCP\IUser::canChangePassword()¶ - check if the backend supports changing passwords
Source: lib/public/IUser.php#134 Returns: bool Since: 8.0.0
-
public
OCP\IUser::canChangeDisplayName()¶ - check if the backend supports changing display names
Source: lib/public/IUser.php#142 Returns: bool Since: 8.0.0
-
public
OCP\IUser::isEnabled()¶ - check if the user is enabled
Source: lib/public/IUser.php#150 Returns: bool Since: 8.0.0
-
public
OCP\IUser::setEnabled($enabled=true)¶ - set the enabled status for the user
Source: Parameters: - $enabled (bool)
Since: 8.0.0
-
public
OCP\IUser::getEMailAddress()¶ - get the users email address
Source: lib/public/IUser.php#166 Returns: string | null Since: 9.0.0
-
public
OCP\IUser::getAvatarImage($size)¶ - get the avatar image if it exists
Source: Parameters: - $size (int)
Returns: \OCP\IImage| nullSince: 9.0.0
-
public
OCP\IUser::getCloudId()¶ - get the federation cloud id
Source: lib/public/IUser.php#183 Returns: string Since: 9.0.0
-
public
OCP\IUser::setEMailAddress($mailAddress)¶ - set the email address of the user
Source: Parameters: - $mailAddress (string | null)
Returns: void
Since: 9.0.0
-
public
OCP\IUser::getQuota()¶ - get the users’ quota in human readable form. If a specific quota is notset for the user, the default value is returned. If a default settingwas not set otherwise, it is return as ‘none’, i.e. quota is not limited.
Source: lib/public/IUser.php#202 Returns: string Since: 9.0.0
-
public
OCP\IUser::setQuota($quota)¶ - set the users’ quota
Source: Parameters: - $quota (string)
Returns: void
Since: 9.0.0