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
Constants
- PROPERTY_LANGUAGE_UID = '_languageUid'
- PROPERTY_LOCALIZED_UID = '_localizedUid'
- PROPERTY_PID = 'pid'
- PROPERTY_UID = 'uid'
- PROPERTY_VERSIONED_UID = '_versionedUid'
Properties
- $_languageUid : int<-1, max>|null
- $_localizedUid : int<0, max>|null
- $_versionedUid : int|null
- The uid of the versioned record.
- $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<0, max>|null
- $realName : string
- $startDateAndTime : DateTime|null
- $uid : int<1, max>|null
- $userName : string
Methods
- __clone() : void
- __construct() : mixed
- __toString() : non-empty-string
- _getCleanProperties() : array<non-empty-string, 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<non-empty-string, mixed>
- _getProperty() : mixed
- _hasProperty() : bool
- _isClone() : bool
- _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)
- _memorizeCleanState() : void
- Register an object's clean state, e.g. after it has been reconstituted from the database.
- _memorizePropertyCleanState() : void
- Register a property'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
- getAllowedLanguages() : string
- getBackendUser() : BackendUserAuthentication
- getBackendUserGroups() : ObjectStorage<string|int, BackendUserGroup>
- getDbMountPoints() : string
- getDescription() : string
- getEmail() : string
- getEndDateAndTime() : DateTime|null
- getFileMountPoints() : string
- getIsAdministrator() : bool
- getIsDisabled() : bool
- getLastLoginDateAndTime() : DateTime|null
- getPid() : int<0, max>|null
- getRealName() : string
- getStartDateAndTime() : DateTime|null
- getUid() : int<1, max>|null
- getUserName() : string
- initializeObject() : void
- 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() : void
- setBackendUserGroups() : void
- setDbMountPoints() : void
- setDescription() : void
- setEmail() : void
- setEndDateAndTime() : void
- setFileMountPoints() : void
- setIsAdministrator() : void
- setIsDisabled() : void
- setLastLoginDateAndTime() : void
- setPid() : void
- setRealName() : void
- setStartDateAndTime() : void
- setUserName() : void
- isPropertyDirty() : bool
- Checks the $value against the $cleanState.
Constants
PROPERTY_LANGUAGE_UID
public
mixed
PROPERTY_LANGUAGE_UID
= '_languageUid'
PROPERTY_LOCALIZED_UID
public
mixed
PROPERTY_LOCALIZED_UID
= '_localizedUid'
PROPERTY_PID
public
mixed
PROPERTY_PID
= 'pid'
PROPERTY_UID
public
mixed
PROPERTY_UID
= 'uid'
PROPERTY_VERSIONED_UID
public
mixed
PROPERTY_VERSIONED_UID
= '_versionedUid'
Properties
$_languageUid
protected
int<-1, max>|null
$_languageUid
= null
The uid of the language of the object. This is the id of the corresponding sing language.
Tags
$_localizedUid
protected
int<0, max>|null
$_localizedUid
= null
The uid of the localized record. Holds the uid of the record in default language (the translationOrigin).
Tags
$_versionedUid
The uid of the versioned record.
protected
int|null
$_versionedUid
= null
Tags
$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
= null
$fileMountPoints
protected
string
$fileMountPoints
= ''
$isAdministrator
protected
bool
$isAdministrator
= false
$isDisabled
protected
bool
$isDisabled
= false
$lastLoginDateAndTime
protected
DateTime|null
$lastLoginDateAndTime
= null
$pid
protected
int<0, max>|null
$pid
= null
The id of the page the record is "stored".
$realName
protected
string
$realName
= ''
$startDateAndTime
protected
DateTime|null
$startDateAndTime
= null
$uid
protected
int<1, max>|null
$uid
= null
The uid of the record. The uid is only unique in the context of the database table.
$userName
protected
string
$userName
= ''
Tags
Methods
__clone()
public
__clone() : void
__construct()
public
__construct() : mixed
__toString()
public
__toString() : non-empty-string
Return values
non-empty-string_getCleanProperties()
Returns a hash map of clean properties and $values.
public
_getCleanProperties() : array<non-empty-string, mixed>
Return values
array<non-empty-string, 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(non-empty-string $propertyName) : mixed
Parameters
- $propertyName : non-empty-string
-
The name of the property to be memorized.
Return values
mixed —The clean property value or NULL
_getProperties()
public
_getProperties() : array<non-empty-string, mixed>
Return values
array<non-empty-string, mixed> —a hash map of property names and property values.
_getProperty()
public
_getProperty(string $propertyName) : mixed
Parameters
- $propertyName : string
_hasProperty()
public
_hasProperty(non-empty-string $propertyName) : bool
Parameters
- $propertyName : non-empty-string
Return values
bool_isClone()
public
_isClone() : bool
Return values
bool_isDirty()
Returns TRUE if the properties were modified after reconstitution
public
_isDirty([non-empty-string|null $propertyName = null ]) : bool
Parameters
- $propertyName : non-empty-string|null = 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)
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([non-empty-string|null $propertyName = null ]) : void
Parameters
- $propertyName : non-empty-string|null = null
-
The name of the property to be memorized. If omitted all persistable properties are memorized.
_memorizePropertyCleanState()
Register a property's clean state, e.g. after it has been reconstituted from the database.
public
_memorizePropertyCleanState(non-empty-string $propertyName) : void
Parameters
- $propertyName : non-empty-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()
public
_setProperty(string $propertyName, mixed $value) : bool
Parameters
- $propertyName : string
- $value : mixed
Return values
boolgetAllowedLanguages()
public
getAllowedLanguages() : string
Return values
stringgetBackendUser()
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()
public
getEmail() : string
Return values
stringgetEndDateAndTime()
public
getEndDateAndTime() : DateTime|null
Return values
DateTime|nullgetFileMountPoints()
public
getFileMountPoints() : string
Return values
stringgetIsAdministrator()
public
getIsAdministrator() : bool
Return values
boolgetIsDisabled()
public
getIsDisabled() : bool
Return values
boolgetLastLoginDateAndTime()
public
getLastLoginDateAndTime() : DateTime|null
Return values
DateTime|nullgetPid()
public
getPid() : int<0, max>|null
Return values
int<0, max>|nullgetRealName()
public
getRealName() : string
Return values
stringgetStartDateAndTime()
public
getStartDateAndTime() : DateTime|null
Return values
DateTime|nullgetUid()
public
getUid() : int<1, max>|null
Return values
int<1, max>|nullgetUserName()
public
getUserName() : string
Return values
stringinitializeObject()
public
initializeObject() : void
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) : void
Parameters
- $allowedLanguages : string
setBackendUserGroups()
public
setBackendUserGroups(ObjectStorage $backendUserGroups) : void
Parameters
- $backendUserGroups : ObjectStorage
setDbMountPoints()
public
setDbMountPoints(string $dbMountPoints) : void
Parameters
- $dbMountPoints : string
setDescription()
public
setDescription(string $description) : void
Parameters
- $description : string
setEmail()
public
setEmail(string $email) : void
Parameters
- $email : string
setEndDateAndTime()
public
setEndDateAndTime([DateTime|null $dateAndTime = null ]) : void
Parameters
- $dateAndTime : DateTime|null = null
setFileMountPoints()
public
setFileMountPoints(string $fileMountPoints) : void
Parameters
- $fileMountPoints : string
setIsAdministrator()
public
setIsAdministrator(bool $isAdministrator) : void
Parameters
- $isAdministrator : bool
setIsDisabled()
public
setIsDisabled(bool $isDisabled) : void
Parameters
- $isDisabled : bool
setLastLoginDateAndTime()
public
setLastLoginDateAndTime([DateTime|null $dateAndTime = null ]) : void
Parameters
- $dateAndTime : DateTime|null = null
setPid()
public
setPid(int<0, max> $pid) : void
Parameters
- $pid : int<0, max>
setRealName()
public
setRealName(string $name) : void
Parameters
- $name : string
setStartDateAndTime()
public
setStartDateAndTime([DateTime|null $dateAndTime = null ]) : void
Parameters
- $dateAndTime : DateTime|null = null
setUserName()
public
setUserName(string $userName) : void
Parameters
- $userName : string
isPropertyDirty()
Checks the $value against the $cleanState.
protected
isPropertyDirty(mixed $previousValue, mixed $currentValue) : bool
Parameters
- $previousValue : mixed
- $currentValue : mixed