UserEntity
extends DatabaseEntity
in package
Table of Contents
- ALLOWED_LANGUAGE = ['ru', 'en']
- ALLOWED_NOTIFICATION_LEVEL = [self::NOTIFICATION_LEVEL_WATCH, self::NOTIFICATION_LEVEL_ON_MENTION, self::NOTIFICATION_LEVEL_DISABLE]
- ALLOWED_TWO_FACTOR_AUTHORIZATION_TYPE = [self::TWO_FACTOR_AUTHORIZATION_TYPE_NONE, self::TWO_FACTOR_AUTHORIZATION_TYPE_EMAIL, self::TWO_FACTOR_AUTHORIZATION_TYPE_TOTP]
- NOTIFICATION_LEVEL_DISABLE = 'disable'
- NOTIFICATION_LEVEL_ON_MENTION = 'onMention'
- NOTIFICATION_LEVEL_WATCH = 'watch'
- TWO_FACTOR_AUTHORIZATION_TYPE_EMAIL = 'email'
- TWO_FACTOR_AUTHORIZATION_TYPE_NONE = 'none'
- TWO_FACTOR_AUTHORIZATION_TYPE_TOTP = 'totp'
- $_id : ObjectId
- $additionalInfo : array<string|int, mixed>
- $blocked : bool
- $blockingTime : int|null
- $company : string
- $confirm : array<string|int, mixed>|bool
- $defaultDislocation : array<string|int, mixed>
- $department : string
- $departments : array<string|int, mixed>
- $division : string
- $email : string
- $employeeID : string
- $filters : array<string|int, mixed>
- {departmentId: ObjectId, dataSetId: ObjectId; filter: string}
- $firstName : string
- $groups : array<string|int, mixed>
- $image : array<string|int, mixed>
- $isVerified : bool
- $language : string
- $lastAuth : int
- $lastName : string
- $ldap : array<string|int, mixed>
- $linkedAccounts : array<string|int, mixed>
- $menu : array<string|int, mixed>
- $name : string
- $notificationLevel : string
- $number : string
- phone number
- $organization : ObjectId
- $password : string
- $position : string
- $products : array<string|int, mixed>
- $SAPLogin : string
- $secondName : string
- $setPasswordToken : string
- $source : string
- $time : int
- create time
- $trackers : array<string|int, mixed>
- $twoFactorAuthorizationType : string
- $updateTime : int
- modification time
- $windowsPosition : stdClass
- $workStatus : string
- __construct() : mixed
- __toString() : string
- bsonSerialize() : array<string|int, mixed>
- bsonUnserialize() : void
- calcFullName() : string
- getAdditionalInfo() : array<string|int, mixed>
- getBlockingTime() : int
- getCompany() : string
- getConfirm() : bool|array<string|int, mixed>
- getDefaultDislocation() : array<string|int, mixed>
- getDepartment() : string
- getDepartments() : array<string|int, ObjectId>
- getDivision() : string
- getEmail() : string
- getEmployeeID() : string
- getFilters() : array<string|int, mixed>
- getFirstName() : string
- getGroups() : array<string|int, ObjectId>
- getId() : ObjectId
- getImage() : array<string|int, mixed>
- getInfo() : array<string|int, mixed>
- getLanguage() : string
- getLastAuth() : int
- getLastName() : string
- getLdap() : array<string|int, mixed>
- getLinkedAccounts() : array<string|int, mixed>
- getMenu() : array<string|int, mixed>
- getName() : string
- getNotificationLevel() : string
- getNumber() : string
- getOrganization() : ObjectId
- getPasswordHash() : string
- getPosition() : string
- getProducts() : array<string|int, ObjectId>
- getSAPLogin() : string
- getSecondName() : string
- getSetPasswordToken() : string
- getSource() : string
- getTime() : int
- getTrackers() : array<string|int, mixed>
- getTwoFactorAuthorizationType() : string
- getUpdateTime() : int
- getWindowsPosition() : stdClass
- getWorkStatus() : string
- insertDepartment() : self
- insertGroup() : self
- insertTracker() : self
- isBlocked() : bool
- isVerified() : bool
- jsonSerialize() : array<string|int, mixed>
- parseObjectId() : ObjectId|null
- removeDepartment() : self
- removeFilter() : self
- removeGroup() : self
- removeLinkedAccount() : self
- removeTracker() : self
- setAdditionalInfo() : self
- setBlockingTime() : self
- setCompany() : self
- setConfirm() : $this
- setDefaultDislocation() : UserEntity
- setDepartment() : self
- setDepartments() : self
- setDivision() : self
- setEmail() : self
- setEmployeeID() : self
- setFilters() : self
- setFirstName() : self
- setId() : self
- setImage() : self
- setIsVerified() : self
- setLanguage() : self
- setLastAuth() : self
- setLastName() : self
- setLdap() : self
- setLinkedAccount() : self
- setLinkedAccounts() : self
- setMenu() : self
- setName() : self
- setNotificationLevel() : self
- setNumber() : self
- setOrganization() : self
- setPassword() : self
- setPosition() : self
- setProducts() : $this
- setSAPLogin() : self
- setSecondName() : self
- setSetPasswordToken() : self
- setSource() : self
- setTime() : self
- setTwoFactorAuthorizationType() : self
- setUpdateTime() : self
- setWindowsPosition() : self
- setWorkStatus() : self
- toArray() : array<string|int, mixed>
Constants
ALLOWED_LANGUAGE
public
mixed
ALLOWED_LANGUAGE
= ['ru', 'en']
ALLOWED_NOTIFICATION_LEVEL
public
mixed
ALLOWED_NOTIFICATION_LEVEL
= [self::NOTIFICATION_LEVEL_WATCH, self::NOTIFICATION_LEVEL_ON_MENTION, self::NOTIFICATION_LEVEL_DISABLE]
ALLOWED_TWO_FACTOR_AUTHORIZATION_TYPE
public
mixed
ALLOWED_TWO_FACTOR_AUTHORIZATION_TYPE
= [self::TWO_FACTOR_AUTHORIZATION_TYPE_NONE, self::TWO_FACTOR_AUTHORIZATION_TYPE_EMAIL, self::TWO_FACTOR_AUTHORIZATION_TYPE_TOTP]
NOTIFICATION_LEVEL_DISABLE
public
mixed
NOTIFICATION_LEVEL_DISABLE
= 'disable'
NOTIFICATION_LEVEL_ON_MENTION
public
mixed
NOTIFICATION_LEVEL_ON_MENTION
= 'onMention'
NOTIFICATION_LEVEL_WATCH
public
mixed
NOTIFICATION_LEVEL_WATCH
= 'watch'
TWO_FACTOR_AUTHORIZATION_TYPE_EMAIL
public
mixed
TWO_FACTOR_AUTHORIZATION_TYPE_EMAIL
= 'email'
TWO_FACTOR_AUTHORIZATION_TYPE_NONE
public
mixed
TWO_FACTOR_AUTHORIZATION_TYPE_NONE
= 'none'
TWO_FACTOR_AUTHORIZATION_TYPE_TOTP
public
mixed
TWO_FACTOR_AUTHORIZATION_TYPE_TOTP
= 'totp'
Properties
$_id
protected
ObjectId
$_id
$additionalInfo
protected
array<string|int, mixed>
$additionalInfo
= []
$blocked
protected
bool
$blocked
= false
$blockingTime
protected
int|null
$blockingTime
= null
$company
protected
string
$company
= ''
$confirm
protected
array<string|int, mixed>|bool
$confirm
$defaultDislocation
protected
array<string|int, mixed>
$defaultDislocation
= [0, 0]
$department
protected
string
$department
= ''
$departments
protected
array<string|int, mixed>
$departments
= []
$division
protected
string
$division
= ''
protected
string
$email
= 'undefined'
$employeeID
protected
string
$employeeID
= ''
$filters
{departmentId: ObjectId, dataSetId: ObjectId; filter: string}
protected
array<string|int, mixed>
$filters
= []
$firstName
protected
string
$firstName
= ''
$groups
protected
array<string|int, mixed>
$groups
= []
$image
protected
array<string|int, mixed>
$image
= []
$isVerified
protected
bool
$isVerified
= true
$language
protected
string
$language
= ''
$lastAuth
protected
int
$lastAuth
= 0
$lastName
protected
string
$lastName
= ''
$ldap
protected
array<string|int, mixed>
$ldap
= []
$linkedAccounts
protected
array<string|int, mixed>
$linkedAccounts
= []
{id: string, properties: array}
$menu
protected
array<string|int, mixed>
$menu
= []
{id: ObjectId; mask: int}
$name
protected
string
$name
= 'undefined'
$notificationLevel
protected
string
$notificationLevel
= self::NOTIFICATION_LEVEL_WATCH
$number
phone number
protected
string
$number
= ''
$organization
protected
ObjectId
$organization
$password
protected
string
$password
$position
protected
string
$position
= ''
$products
protected
array<string|int, mixed>
$products
= []
$SAPLogin
protected
string
$SAPLogin
= ''
$secondName
protected
string
$secondName
= ''
$setPasswordToken
protected
string
$setPasswordToken
= ''
$source
protected
string
$source
= 'undefined'
$time
create time
protected
int
$time
= 0
$trackers
protected
array<string|int, mixed>
$trackers
= []
$twoFactorAuthorizationType
protected
string
$twoFactorAuthorizationType
= self::TWO_FACTOR_AUTHORIZATION_TYPE_NONE
$updateTime
modification time
protected
int
$updateTime
= 0
$windowsPosition
protected
stdClass
$windowsPosition
$workStatus
protected
string
$workStatus
= ''
Methods
__construct()
public
__construct([ObjectId|null $id = null ]) : mixed
Parameters
- $id : ObjectId|null = null
Return values
mixed —__toString()
public
__toString() : string
Return values
string —bsonSerialize()
public
bsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed> —bsonUnserialize()
public
bsonUnserialize(array<string|int, mixed> $data) : void
Parameters
- $data : array<string|int, mixed>
Return values
void —calcFullName()
public
calcFullName() : string
Return values
string —getAdditionalInfo()
public
getAdditionalInfo() : array<string|int, mixed>
Return values
array<string|int, mixed> —getBlockingTime()
public
getBlockingTime() : int
Return values
int —getCompany()
public
getCompany() : string
Return values
string —getConfirm()
public
getConfirm() : bool|array<string|int, mixed>
Return values
bool|array<string|int, mixed> —getDefaultDislocation()
public
getDefaultDislocation() : array<string|int, mixed>
Return values
array<string|int, mixed> —getDepartment()
public
getDepartment() : string
Return values
string —getDepartments()
public
getDepartments() : array<string|int, ObjectId>
Return values
array<string|int, ObjectId> —getDivision()
public
getDivision() : string
Return values
string —getEmail()
public
getEmail() : string
Return values
string —getEmployeeID()
public
getEmployeeID() : string
Return values
string —getFilters()
public
getFilters() : array<string|int, mixed>
Return values
array<string|int, mixed> —getFirstName()
public
getFirstName() : string
Return values
string —getGroups()
public
getGroups() : array<string|int, ObjectId>
Return values
array<string|int, ObjectId> —getId()
public
getId() : ObjectId
Return values
ObjectId —getImage()
public
getImage() : array<string|int, mixed>
Return values
array<string|int, mixed> —getInfo()
public
getInfo() : array<string|int, mixed>
Return values
array<string|int, mixed> —getLanguage()
public
getLanguage() : string
Return values
string —getLastAuth()
public
getLastAuth() : int
Return values
int —getLastName()
public
getLastName() : string
Return values
string —getLdap()
public
getLdap() : array<string|int, mixed>
Return values
array<string|int, mixed> —getLinkedAccounts()
public
getLinkedAccounts() : array<string|int, mixed>
Return values
array<string|int, mixed> —getMenu()
public
getMenu() : array<string|int, mixed>
Return values
array<string|int, mixed> —getName()
public
getName() : string
Return values
string —getNotificationLevel()
public
getNotificationLevel() : string
Return values
string —getNumber()
public
getNumber() : string
Return values
string —getOrganization()
public
getOrganization() : ObjectId
Return values
ObjectId —getPasswordHash()
public
getPasswordHash() : string
Return values
string —getPosition()
public
getPosition() : string
Return values
string —getProducts()
public
getProducts() : array<string|int, ObjectId>
Return values
array<string|int, ObjectId> —getSAPLogin()
public
getSAPLogin() : string
Return values
string —getSecondName()
public
getSecondName() : string
Return values
string —getSetPasswordToken()
public
getSetPasswordToken() : string
Return values
string —getSource()
public
getSource() : string
Return values
string —getTime()
public
getTime() : int
Return values
int —getTrackers()
public
getTrackers() : array<string|int, mixed>
Return values
array<string|int, mixed> —getTwoFactorAuthorizationType()
public
getTwoFactorAuthorizationType() : string
Return values
string —getUpdateTime()
public
getUpdateTime() : int
Return values
int —getWindowsPosition()
public
getWindowsPosition() : stdClass
Return values
stdClass —getWorkStatus()
public
getWorkStatus() : string
Return values
string —insertDepartment()
public
insertDepartment(ObjectId $departmentId) : self
Parameters
- $departmentId : ObjectId
Return values
self —insertGroup()
public
insertGroup(ObjectId $groupId) : self
Parameters
- $groupId : ObjectId
Return values
self —insertTracker()
public
insertTracker(ObjectId $trackerId) : self
Parameters
- $trackerId : ObjectId
Return values
self —isBlocked()
public
isBlocked() : bool
Return values
bool —isVerified()
public
isVerified() : bool
Return values
bool —jsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed> —parseObjectId()
public
static parseObjectId(mixed $objectId) : ObjectId|null
Parameters
- $objectId : mixed
Return values
ObjectId|null —removeDepartment()
public
removeDepartment(ObjectId $departmentId) : self
Parameters
- $departmentId : ObjectId
Return values
self —removeFilter()
public
removeFilter(ObjectId $departmentId, ObjectId $dataSetId) : self
Parameters
- $departmentId : ObjectId
- $dataSetId : ObjectId
Return values
self —removeGroup()
public
removeGroup(ObjectId $groupId) : self
Parameters
- $groupId : ObjectId
Return values
self —removeLinkedAccount()
public
removeLinkedAccount(string $type) : self
Parameters
- $type : string
Return values
self —removeTracker()
public
removeTracker(ObjectId $trackerId) : self
Parameters
- $trackerId : ObjectId
Return values
self —setAdditionalInfo()
public
setAdditionalInfo(array<string|int, mixed> $additonalInfo) : self
Parameters
- $additonalInfo : array<string|int, mixed>
Return values
self —setBlockingTime()
public
setBlockingTime(int|null $blockingTime) : self
Parameters
- $blockingTime : int|null
Return values
self —setCompany()
public
setCompany(string $company) : self
Parameters
- $company : string
Return values
self —setConfirm()
public
setConfirm(bool|array<string|int, mixed> $confirm) : $this
Parameters
- $confirm : bool|array<string|int, mixed>
Return values
$this —setDefaultDislocation()
public
setDefaultDislocation(array<string|int, mixed> $defaultDislocation) : UserEntity
Parameters
- $defaultDislocation : array<string|int, mixed>
Return values
UserEntity —setDepartment()
public
setDepartment(string $department) : self
Parameters
- $department : string
Return values
self —setDepartments()
public
setDepartments(array<string|int, mixed> $departmentsIds) : self
Parameters
- $departmentsIds : array<string|int, mixed>
Return values
self —setDivision()
public
setDivision(string $division) : self
Parameters
- $division : string
Return values
self —setEmail()
public
setEmail(string $email) : self
Parameters
- $email : string
Return values
self —setEmployeeID()
public
setEmployeeID(string $employeeID) : self
Parameters
- $employeeID : string
Return values
self —setFilters()
public
setFilters(array<string|int, mixed> $filters) : self
Parameters
- $filters : array<string|int, mixed>
Return values
self —setFirstName()
public
setFirstName(string $firstName) : self
Parameters
- $firstName : string
Return values
self —setId()
public
setId(ObjectId $id) : self
Parameters
- $id : ObjectId
Return values
self —setImage()
public
setImage(array<string|int, mixed> $image) : self
Parameters
- $image : array<string|int, mixed>
Return values
self —setIsVerified()
public
setIsVerified(bool $isVerified) : self
Parameters
- $isVerified : bool
Return values
self —setLanguage()
public
setLanguage(string $language) : self
Parameters
- $language : string
Return values
self —setLastAuth()
public
setLastAuth(int $lastAuth) : self
Parameters
- $lastAuth : int
Return values
self —setLastName()
public
setLastName(string $lastName) : self
Parameters
- $lastName : string
Return values
self —setLdap()
public
setLdap(array<string|int, mixed> $ldap) : self
Parameters
- $ldap : array<string|int, mixed>
Return values
self —setLinkedAccount()
public
setLinkedAccount(string $type, array<string|int, mixed> $account) : self
Parameters
- $type : string
- $account : array<string|int, mixed>
Return values
self —setLinkedAccounts()
public
setLinkedAccounts(array<string|int, mixed> $linkedAccounts) : self
Parameters
- $linkedAccounts : array<string|int, mixed>
Return values
self —setMenu()
public
setMenu(array<string|int, mixed> $menu) : self
Parameters
- $menu : array<string|int, mixed>
Return values
self —setName()
public
setName(string $name) : self
Parameters
- $name : string
Return values
self —setNotificationLevel()
public
setNotificationLevel(string $notificationLevel) : self
Parameters
- $notificationLevel : string
Return values
self —setNumber()
public
setNumber(string $number) : self
Parameters
- $number : string
Return values
self —setOrganization()
public
setOrganization(ObjectId $organization) : self
Parameters
- $organization : ObjectId
Return values
self —setPassword()
public
setPassword(string $password) : self
Parameters
- $password : string
Return values
self —setPosition()
public
setPosition(string $position) : self
Parameters
- $position : string
Return values
self —setProducts()
public
setProducts(array<string|int, ObjectId> $products) : $this
Parameters
- $products : array<string|int, ObjectId>
Return values
$this —setSAPLogin()
public
setSAPLogin(string $SAPLogin) : self
Parameters
- $SAPLogin : string
Return values
self —setSecondName()
public
setSecondName(string $secondName) : self
Parameters
- $secondName : string
Return values
self —setSetPasswordToken()
public
setSetPasswordToken(string $setPasswordToken) : self
Parameters
- $setPasswordToken : string
Return values
self —setSource()
public
setSource(string $source) : self
Parameters
- $source : string
Return values
self —setTime()
public
setTime(int $time) : self
Parameters
- $time : int
Return values
self —setTwoFactorAuthorizationType()
public
setTwoFactorAuthorizationType(string $type) : self
Parameters
- $type : string
Return values
self —setUpdateTime()
public
setUpdateTime(int $updateTime) : self
Parameters
- $updateTime : int
Return values
self —setWindowsPosition()
public
setWindowsPosition(stdClass $windowsPosition) : self
Parameters
- $windowsPosition : stdClass
Return values
self —setWorkStatus()
public
setWorkStatus(string $workStatus) : self
Parameters
- $workStatus : string
Return values
self —toArray()
public
toArray() : array<string|int, mixed>