User¶
-
class
OC\User\User¶ Source: lib/private/User/User.php#60 Implements: OCP\IUser
Properties¶
Methods¶
-
public
OC\User\User::__construct($uid, $backend, $dispatcher, $emitter=null, $config=null, $urlGenerator=null)¶ Source: lib/private/User/User.php#96
-
public
OC\User\User::getUID()¶ - get the user id
Source: lib/private/User/User.php#121 Returns: string
-
public
OC\User\User::getDisplayName()¶ - get the display name for the user, if no specific display name is set it will fallback to the user id
Source: lib/private/User/User.php#130 Returns: string
-
public
OC\User\User::setDisplayName($displayName)¶ - set the displayname for the user
Source: Parameters: - $displayName (string)
Returns: bool
-
public
OC\User\User::setEMailAddress($mailAddress)¶ - set the email address of the user
Source: Parameters: - $mailAddress (string | null)
Returns: void
Since: 9.0.0
-
public
OC\User\User::getLastLogin()¶ - returns the timestamp of the user’s last login or 0 if the user did neverlogin
Source: lib/private/User/User.php#195 Returns: int
-
public
OC\User\User::updateLastLoginTimestamp()¶ - updates the timestamp of the most recent login of this user
Source: lib/private/User/User.php#202
-
public
OC\User\User::delete()¶ - Delete the user
Source: lib/private/User/User.php#216 Returns: bool
-
public
OC\User\User::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
-
public
OC\User\User::getHome()¶ - get the users home folder to mount
Source: lib/private/User/User.php#315 Returns: string
-
public
OC\User\User::getBackendClassName()¶ - Get the name of the backend class the user is connected with
Source: lib/private/User/User.php#333 Returns: string
-
public
OC\User\User::getBackend()¶ Source: lib/private/User/User.php#340
-
public
OC\User\User::canChangeAvatar()¶ - check if the backend allows the user to change his avatar on Personal page
Source: lib/private/User/User.php#349 Returns: bool
-
public
OC\User\User::canChangePassword()¶ - check if the backend supports changing passwords
Source: lib/private/User/User.php#361 Returns: bool
-
public
OC\User\User::canChangeDisplayName()¶ - check if the backend supports changing display names
Source: lib/private/User/User.php#370 Returns: bool
-
public
OC\User\User::isEnabled()¶ - check if the user is enabled
Source: lib/private/User/User.php#382 Returns: bool
-
public
OC\User\User::setEnabled($enabled=true)¶ - set the enabled status for the user
Source: Parameters: - $enabled (bool)
-
public
OC\User\User::getEMailAddress()¶ - get the users email address
Source: lib/private/User/User.php#407 Returns: string | null Since: 9.0.0
-
public
OC\User\User::getQuota()¶ - get the users’ quota
Source: lib/private/User/User.php#417 Returns: string Since: 9.0.0
-
public
OC\User\User::setQuota($quota)¶ - set the users’ quota
Source: Parameters: - $quota (string)
Returns: void
Since: 9.0.0
-
public
OC\User\User::getAvatarImage($size)¶ - get the avatar image if it exists
Source: Parameters: - $size (int)
Returns: \OCP\IImage| nullSince: 9.0.0
-
public
OC\User\User::getCloudId()¶ - get the federation cloud id
Source: lib/private/User/User.php#480 Returns: string Since: 9.0.0
-
public
OC\User\User::triggerChange($feature, $value=null, $oldValue=null)¶ Source: lib/private/User/User.php#501