NextDom\Model\Entity\User
User
Synopsis
class User
extends BaseEntity
{
- // constants
- const TABLE_NAME = NextDomObj::USER;
- // Inherited constants from BaseEntity
- const TABLE_NAME = '';
- // Inherited constants from BaseModel
- const TABLE_NAME = '';
- // members
- protected $login;
- protected string $profils = 'admin';
- protected $password;
- protected $hash;
- protected $rights;
- // Inherited members from BaseEntity
- protected $id;
- // Inherited members from BaseModel
- protected bool $_changed;
- // methods
- public void preInsert()
- public string getLogin()
- public $this setLogin()
- public void preSave()
- public string getProfils()
- public $this setProfils()
- public bool isEnabled()
- public void preRemove()
- public bool remove()
- public boolean is_Connected()
- public boolean isConnected()
- public bool validateTwoFactorCode()
- public string getPassword()
- public $this setPassword()
- public array|bool|mixed|null|string getRights()
- public $this setRights()
- public string getHash()
- public $this setHash()
- // Inherited methods from BaseModel
- public bool getChanged()
- public $this setChanged()
- public void updateChangeState()
- public string getTableName()
- public void save()
- public void remove()
- // Inherited methods from EnableEntity
- public abstract void updateChangeState()
- public int getEnable()
- public $this setEnable()
- public bool isEnabled()
- // Inherited methods from OptionsEntity
- public abstract void updateChangeState()
- public array|bool|mixed|null|string getOptions()
- public $this setOptions()
- // Inherited methods from RefreshEntity
- public void refresh()
Hierarchy
Extends
Uses
Constants
Name | Value |
---|---|
TABLE_NAME | NextDomObj::USER |
TABLE_NAME | '' |
TABLE_NAME | '' |
Members
protected
- $_changed — NextDom\Model\Entity\Parents\bool
- $enable — integer
- $hash — string
- $id — integer
- $login — string
- $options — string
- $password — string
- $profils — string
- $rights — string
Methods
public
- getHash()
- getLogin()
- getPassword()
- getProfils()
- getRights()
- isConnected()
- isEnabled()
- is_Connected()
- preInsert()
- preRemove()
- preSave() — Method called before save in database
- remove()
- setHash()
- setLogin()
- setPassword()
- setProfils()
- setRights()
- validateTwoFactorCode()
Inherited from NextDom\Model\Entity\Parents\BaseEntity
public
Inherited from NextDom\Model\Entity\Parents\BaseModel
public
- getChanged() — Get changed state
- getTableName()
- remove() — Remove the entity from the database
- save() — Save the entity in the database
- setChanged() — Set changed state
- updateChangeState() — Update change state if values are different
Inherited from NextDom\Model\Entity\Parents\EnableEntity
public
- getEnable()
- isEnabled() — Get bool enabled state
- setEnable()
- updateChangeState()
Inherited from NextDom\Model\Entity\Parents\OptionsEntity
public
Inherited from NextDom\Model\Entity\Parents\RefreshEntity
public
- refresh() — Rafraichit les informations à partir de la base de données