BackendUser extends AbstractEntity
Model for backend user
This class is a TYPO3 Backend implementation and is not considered part of the Public TYPO3 API.
Table of Contents
Properties
- $_languageUid : int
- $_localizedUid : int
- $_versionedUid : int
- $allowedLanguages : string
- Comma separated list of uids in multi-select Might retrieve the labels from TCA/DataMapper
- $backendUserGroups : ObjectStorage<string|int, BackendUserGroup>
- $dbMountPoints : string
- $description : string
- $email : string
- $endDateAndTime : DateTime|null
- $fileMountPoints : string
- $isAdministrator : bool
- $isDisabled : bool
- $lastLoginDateAndTime : DateTime|null
- $pid : int
- $realName : string
- $startDateAndTime : DateTime|null
- $uid : int
- $userName : string
Methods
- __clone() : mixed
- Clone method. Sets the _isClone property.
- __toString() : string
- Returns the class name and the uid of the object as string
- _getCleanProperties() : array<string|int, mixed>
- Returns a hash map of clean properties and $values.
- _getCleanProperty() : mixed
- Returns the clean value of the given property. The returned value will be NULL if the clean state was not memorized before, or if the clean value is NULL.
- _getProperties() : array<string|int, mixed>
- Returns a hash map of property names and property values. Only for internal use.
- _getProperty() : mixed
- Returns the property value of the given property name. Only for internal use.
- _hasProperty() : bool
- Returns the property value of the given property name. Only for internal use.
- _isClone() : bool
- Returns TRUE if the object has been cloned, FALSE otherwise.
- _isDirty() : bool
- Returns TRUE if the properties were modified after reconstitution
- _isNew() : bool
- Returns TRUE if the object is new (the uid was not set, yet). Only for internal use
- _memorizeCleanState() : mixed
- Register an object's clean state, e.g. after it has been reconstituted from the database.
- _memorizePropertyCleanState() : mixed
- Register a properties's clean state, e.g. after it has been reconstituted from the database.
- _setClone() : mixed
- Setter whether this Domain Object is a clone of another one.
- _setProperty() : bool
- Reconstitutes a property. Only for internal use.
- getAllowedLanguages() : string
- getBackendUser() : BackendUserAuthentication
- Gets the currently logged in backend user
- getBackendUserGroups() : ObjectStorage<string|int, BackendUserGroup>
- getDbMountPoints() : string
- getDescription() : string
- getEmail() : string
- Gets the e-mail address of this user.
- getEndDateAndTime() : DateTime|null
- Returns the point in time before which this user is enabled.
- getFileMountPoints() : string
- getIsAdministrator() : bool
- Checks whether this user is an administrator.
- getIsDisabled() : bool
- Checks whether this user is disabled.
- getLastLoginDateAndTime() : DateTime|null
- Gets this user's last login date and time.
- getPid() : int|null
- Getter for the pid.
- getRealName() : string
- Returns this user's real name.
- getStartDateAndTime() : DateTime|null
- Returns the point in time from which this user is enabled.
- getUid() : int|null
- Getter for uid.
- getUserName() : string
- Gets the user name.
- isActivated() : bool
- Checks whether this user is currently activated.
- isActive() : bool
- Check if user is active, not disabled
- isCurrentlyLoggedIn() : bool
- Check if user is currently logged in
- isPasswordResetEnabled() : bool
- Check if the user is allowed to trigger a password reset
- setAllowedLanguages() : mixed
- setBackendUserGroups() : mixed
- setDbMountPoints() : mixed
- setDescription() : mixed
- setEmail() : mixed
- Sets the e-mail address of this user.
- setEndDateAndTime() : mixed
- Sets the point in time before which this user is enabled.
- setFileMountPoints() : mixed
- setIsAdministrator() : mixed
- Sets whether this user should be an administrator.
- setIsDisabled() : mixed
- Sets whether this user is disabled.
- setLastLoginDateAndTime() : mixed
- Sets this user's last login date and time.
- setPid() : void
- Setter for the pid.
- setRealName() : mixed
- Sets this user's real name.
- setStartDateAndTime() : mixed
- Sets the point in time from which this user is enabled.
- setUserName() : mixed
- Sets the user name.
- isActivatedViaEndDateAndTime() : bool
- Checks whether this user is activated as far as the end date and time is concerned.
- isActivatedViaStartDateAndTime() : bool
- Checks whether this user is activated as far as the start date and time is concerned.
- isPropertyDirty() : bool
- Checks the $value against the $cleanState.
Properties
$_languageUid
protected
int
$_languageUid
The uid of the language of the object. This is the uid of the language record in the table sys_language.
$_localizedUid
protected
int
$_localizedUid
The uid of the localized record. Holds the uid of the record in default language (the translationOrigin).
$_versionedUid
protected
int
$_versionedUid
The uid of the versioned record.
$allowedLanguages
Comma separated list of uids in multi-select Might retrieve the labels from TCA/DataMapper
protected
string
$allowedLanguages
= ''
$backendUserGroups
protected
ObjectStorage<string|int, BackendUserGroup>
$backendUserGroups
$dbMountPoints
protected
string
$dbMountPoints
= ''
$description
protected
string
$description
= ''
protected
string
$email
= ''
$endDateAndTime
protected
DateTime|null
$endDateAndTime
$fileMountPoints
protected
string
$fileMountPoints
= ''
$isAdministrator
protected
bool
$isAdministrator
= false
$isDisabled
protected
bool
$isDisabled
= false
$lastLoginDateAndTime
protected
DateTime|null
$lastLoginDateAndTime
$pid
protected
int
$pid
The id of the page the record is "stored".
$realName
protected
string
$realName
= ''
$startDateAndTime
protected
DateTime|null
$startDateAndTime
$uid
protected
int
$uid
The uid of the record. The uid is only unique in the context of the database table.
$userName
protected
string
$userName
= ''
Tags
Methods
__clone()
Clone method. Sets the _isClone property.
public
__clone() : mixed
__toString()
Returns the class name and the uid of the object as string
public
__toString() : string
Return values
string_getCleanProperties()
Returns a hash map of clean properties and $values.
public
_getCleanProperties() : array<string|int, mixed>
Return values
array<string|int, mixed>_getCleanProperty()
Returns the clean value of the given property. The returned value will be NULL if the clean state was not memorized before, or if the clean value is NULL.
public
_getCleanProperty(string $propertyName) : mixed
Parameters
- $propertyName : string
-
The name of the property to be memorized.
Return values
mixed —The clean property value or NULL
_getProperties()
Returns a hash map of property names and property values. Only for internal use.
public
_getProperties() : array<string|int, mixed>
Return values
array<string|int, mixed> —The properties
_getProperty()
Returns the property value of the given property name. Only for internal use.
public
_getProperty(string $propertyName) : mixed
Parameters
- $propertyName : string
Return values
mixed —The propertyValue
_hasProperty()
Returns the property value of the given property name. Only for internal use.
public
_hasProperty(string $propertyName) : bool
Parameters
- $propertyName : string
Return values
bool —TRUE bool true if the property exists, FALSE if it doesn't exist or NULL in case of an error.
_isClone()
Returns TRUE if the object has been cloned, FALSE otherwise.
public
_isClone() : bool
Return values
bool —TRUE if the object has been cloned
_isDirty()
Returns TRUE if the properties were modified after reconstitution
public
_isDirty([string $propertyName = null ]) : bool
Parameters
- $propertyName : string = null
-
An optional name of a property to be checked if its value is dirty
Tags
Return values
bool_isNew()
Returns TRUE if the object is new (the uid was not set, yet). Only for internal use
public
_isNew() : bool
Return values
bool_memorizeCleanState()
Register an object's clean state, e.g. after it has been reconstituted from the database.
public
_memorizeCleanState([string $propertyName = null ]) : mixed
Parameters
- $propertyName : string = null
-
The name of the property to be memorized. If omitted all persistable properties are memorized.
_memorizePropertyCleanState()
Register a properties's clean state, e.g. after it has been reconstituted from the database.
public
_memorizePropertyCleanState(string $propertyName) : mixed
Parameters
- $propertyName : string
-
The name of the property to be memorized. If omitted all persistable properties are memorized.
_setClone()
Setter whether this Domain Object is a clone of another one.
public
_setClone(bool $clone) : mixed
NEVER SET THIS PROPERTY DIRECTLY. We currently need it to make the _isDirty check inside AbstractEntity work, but it is just a work- around right now.
Parameters
- $clone : bool
_setProperty()
Reconstitutes a property. Only for internal use.
public
_setProperty(string $propertyName, mixed $propertyValue) : bool
Parameters
- $propertyName : string
- $propertyValue : mixed
Return values
boolgetAllowedLanguages()
public
getAllowedLanguages() : string
Return values
stringgetBackendUser()
Gets the currently logged in backend user
public
getBackendUser() : BackendUserAuthentication
Return values
BackendUserAuthenticationgetBackendUserGroups()
public
getBackendUserGroups() : ObjectStorage<string|int, BackendUserGroup>
Return values
ObjectStorage<string|int, BackendUserGroup>getDbMountPoints()
public
getDbMountPoints() : string
Return values
stringgetDescription()
public
getDescription() : string
Return values
stringgetEmail()
Gets the e-mail address of this user.
public
getEmail() : string
Return values
string —the e-mail address, might be empty
getEndDateAndTime()
Returns the point in time before which this user is enabled.
public
getEndDateAndTime() : DateTime|null
Return values
DateTime|null —the end date and time
getFileMountPoints()
public
getFileMountPoints() : string
Return values
stringgetIsAdministrator()
Checks whether this user is an administrator.
public
getIsAdministrator() : bool
Return values
bool —whether this user is an administrator
getIsDisabled()
Checks whether this user is disabled.
public
getIsDisabled() : bool
Return values
bool —whether this user is disabled
getLastLoginDateAndTime()
Gets this user's last login date and time.
public
getLastLoginDateAndTime() : DateTime|null
Return values
DateTime|null —this user's last login date and time, will be NULL if this user has never logged in before
getPid()
Getter for the pid.
public
getPid() : int|null
Return values
int|null —The pid or NULL if none set yet.
getRealName()
Returns this user's real name.
public
getRealName() : string
Return values
string —the real name. might be empty
getStartDateAndTime()
Returns the point in time from which this user is enabled.
public
getStartDateAndTime() : DateTime|null
Return values
DateTime|null —the start date and time
getUid()
Getter for uid.
public
getUid() : int|null
Return values
int|null —The uid or NULL if none set yet.
getUserName()
Gets the user name.
public
getUserName() : string
Return values
string —the user name, will not be empty
isActivated()
Checks whether this user is currently activated.
public
isActivated() : bool
This function takes the "disabled" flag, the start date/time and the end date/time into account.
Return values
bool —whether this user is currently activated
isActive()
Check if user is active, not disabled
public
isActive() : bool
Return values
boolisCurrentlyLoggedIn()
Check if user is currently logged in
public
isCurrentlyLoggedIn() : bool
Return values
boolisPasswordResetEnabled()
Check if the user is allowed to trigger a password reset
public
isPasswordResetEnabled() : bool
Requirements:
- The user for which the password reset should be triggered is not the currently logged in user
- Password reset is enabled for the user (Email+Password are set)
- The currently logged in user is allowed to reset passwords in the backend (Enabled in user TSconfig)
Return values
boolsetAllowedLanguages()
public
setAllowedLanguages(string $allowedLanguages) : mixed
Parameters
- $allowedLanguages : string
setBackendUserGroups()
public
setBackendUserGroups(ObjectStorage<string|int, BackendUserGroup> $backendUserGroups) : mixed
Parameters
- $backendUserGroups : ObjectStorage<string|int, BackendUserGroup>
setDbMountPoints()
public
setDbMountPoints(string $dbMountPoints) : mixed
Parameters
- $dbMountPoints : string
setDescription()
public
setDescription(string $description) : mixed
Parameters
- $description : string
setEmail()
Sets the e-mail address of this user.
public
setEmail(string $email) : mixed
Parameters
- $email : string
-
the e-mail address, may be empty
setEndDateAndTime()
Sets the point in time before which this user is enabled.
public
setEndDateAndTime([DateTime|null $dateAndTime = null ]) : mixed
Parameters
- $dateAndTime : DateTime|null = null
-
the end date and time
setFileMountPoints()
public
setFileMountPoints(string $fileMountPoints) : mixed
Parameters
- $fileMountPoints : string
setIsAdministrator()
Sets whether this user should be an administrator.
public
setIsAdministrator(bool $isAdministrator) : mixed
Parameters
- $isAdministrator : bool
-
whether this user should be an administrator
setIsDisabled()
Sets whether this user is disabled.
public
setIsDisabled(bool $isDisabled) : mixed
Parameters
- $isDisabled : bool
-
whether this user is disabled
setLastLoginDateAndTime()
Sets this user's last login date and time.
public
setLastLoginDateAndTime([DateTime|null $dateAndTime = null ]) : mixed
Parameters
- $dateAndTime : DateTime|null = null
-
this user's last login date and time
setPid()
Setter for the pid.
public
setPid(int $pid) : void
Parameters
- $pid : int
setRealName()
Sets this user's real name.
public
setRealName(string $name) : mixed
Parameters
- $name : string
-
the user's real name, may be empty.
setStartDateAndTime()
Sets the point in time from which this user is enabled.
public
setStartDateAndTime([DateTime|null $dateAndTime = null ]) : mixed
Parameters
- $dateAndTime : DateTime|null = null
-
the start date and time
setUserName()
Sets the user name.
public
setUserName(string $userName) : mixed
Parameters
- $userName : string
-
the user name to set, must not be empty
isActivatedViaEndDateAndTime()
Checks whether this user is activated as far as the end date and time is concerned.
protected
isActivatedViaEndDateAndTime() : bool
Return values
bool —whether this user is activated as far as the end date and time is concerned
isActivatedViaStartDateAndTime()
Checks whether this user is activated as far as the start date and time is concerned.
protected
isActivatedViaStartDateAndTime() : bool
Return values
bool —whether this user is activated as far as the start date and time is concerned
isPropertyDirty()
Checks the $value against the $cleanState.
protected
isPropertyDirty(mixed $previousValue, mixed $currentValue) : bool
Parameters
- $previousValue : mixed
- $currentValue : mixed