user
in package
Table of Contents
Properties
- $_changed : mixed
- $enable : mixed
- $hash : mixed
- $id : mixed
- $login : mixed
- $options : mixed
- $password : mixed
- $profils : mixed
- $rights : mixed
Methods
- all() : array<string|int, mixed>
- byEnable() : mixed
- byHash() : mixed
- byId() : mixed
- byLogin() : mixed
- byLoginAndHash() : mixed
- byLoginAndPassword() : mixed
- byProfils() : mixed
- connect() : user
- Retourne un object utilisateur (si les information de connection sont valide)
- connectToLDAP() : mixed
- deadCmd() : mixed
- decrypt() : void
- encrypt() : void
- failedLogin() : void
- getAccessKeyForReport() : string
- getChanged() : mixed
- getEnable() : mixed
- getHash() : mixed
- getId() : mixed
- getLogin() : mixed
- getOptions() : mixed
- getPassword() : mixed
- getProfils() : mixed
- getRights() : mixed
- is_Connected() : bool
- isBan() : bool
- preInsert() : void
- preRemove() : void
- preSave() : void
- refresh() : void
- regenerateHash() : mixed
- remove() : mixed
- removeBanIp() : void
- save() : mixed
- searchByOptions() : mixed
- searchByRight() : mixed
- setChanged() : self
- setEnable() : self
- setHash() : mixed
- setId() : self
- setLogin() : self
- setOptions() : mixed
- setPassword() : self
- setProfils() : self
- setRights() : self
- supportAccess() : mixed
- validateTwoFactorCode() : mixed
Properties
$_changed
private
mixed
$_changed
= \false
$enable
private
mixed
$enable
= 1
$hash
private
mixed
$hash
$id
private
mixed
$id
$login
private
mixed
$login
$options
private
mixed
$options
$password
private
mixed
$password
$profils
private
mixed
$profils
= 'admin'
$rights
private
mixed
$rights
Methods
all()
public
static all() : array<string|int, mixed>
Return values
array<string|int, mixed> —de tous les utilisateurs
byEnable()
public
static byEnable(mixed $_enable) : mixed
Parameters
- $_enable : mixed
byHash()
public
static byHash(mixed $_hash) : mixed
Parameters
- $_hash : mixed
byId()
public
static byId(mixed $_id) : mixed
Parameters
- $_id : mixed
byLogin()
public
static byLogin(mixed $_login) : mixed
Parameters
- $_login : mixed
byLoginAndHash()
public
static byLoginAndHash(mixed $_login, mixed $_hash) : mixed
Parameters
- $_login : mixed
- $_hash : mixed
byLoginAndPassword()
public
static byLoginAndPassword(string $_login, string $_password) : mixed
Parameters
- $_login : string
- $_password : string
byProfils()
public
static byProfils(mixed $_profils[, mixed $_enable = false ]) : mixed
Parameters
- $_profils : mixed
- $_enable : mixed = false
connect()
Retourne un object utilisateur (si les information de connection sont valide)
public
static connect(string $_login, string $_mdp) : user
Parameters
- $_login : string
-
nom d'utilisateur
- $_mdp : string
-
motsz de passe en sha512
Return values
user —object user
connectToLDAP()
public
static connectToLDAP() : mixed
deadCmd()
public
static deadCmd() : mixed
decrypt()
public
decrypt() : void
encrypt()
public
encrypt() : void
failedLogin()
public
static failedLogin() : void
getAccessKeyForReport()
public
static getAccessKeyForReport() : string
Return values
stringgetChanged()
public
getChanged() : mixed
getEnable()
public
getEnable() : mixed
getHash()
public
getHash() : mixed
getId()
public
getId() : mixed
getLogin()
public
getLogin() : mixed
getOptions()
public
getOptions([mixed $_key = '' ][, mixed $_default = '' ]) : mixed
Parameters
- $_key : mixed = ''
- $_default : mixed = ''
getPassword()
public
getPassword() : mixed
getProfils()
public
getProfils() : mixed
getRights()
public
getRights([mixed $_key = '' ][, mixed $_default = '' ]) : mixed
Parameters
- $_key : mixed = ''
- $_default : mixed = ''
is_Connected()
public
is_Connected() : bool
Return values
bool —vrai si l'utilisateur est valide
isBan()
public
static isBan() : bool
Return values
boolpreInsert()
public
preInsert() : void
preRemove()
public
preRemove() : void
preSave()
public
preSave() : void
refresh()
public
refresh() : void
regenerateHash()
public
static regenerateHash() : mixed
remove()
public
remove() : mixed
removeBanIp()
public
static removeBanIp() : void
save()
public
save() : mixed
searchByOptions()
public
static searchByOptions(mixed $_search) : mixed
Parameters
- $_search : mixed
searchByRight()
public
static searchByRight(string $_rights) : mixed
Parameters
- $_rights : string
setChanged()
public
setChanged(mixed $_changed) : self
Parameters
- $_changed : mixed
Return values
selfsetEnable()
public
setEnable(mixed $_enable) : self
Parameters
- $_enable : mixed
Return values
selfsetHash()
public
setHash(mixed $_hash) : mixed
Parameters
- $_hash : mixed
setId()
public
setId(mixed $_id) : self
Parameters
- $_id : mixed
Return values
selfsetLogin()
public
setLogin(mixed $_login) : self
Parameters
- $_login : mixed
Return values
selfsetOptions()
public
setOptions(mixed $_key, mixed $_value) : mixed
Parameters
- $_key : mixed
- $_value : mixed
setPassword()
public
setPassword(string $_password) : self
Parameters
- $_password : string
Return values
selfsetProfils()
public
setProfils(mixed $_profils) : self
Parameters
- $_profils : mixed
Return values
selfsetRights()
public
setRights(mixed $_key, mixed $_value) : self
Parameters
- $_key : mixed
- $_value : mixed
Return values
selfsupportAccess()
public
static supportAccess([mixed $_enable = true ]) : mixed
Parameters
- $_enable : mixed = true
validateTwoFactorCode()
public
validateTwoFactorCode(mixed $_code) : mixed
Parameters
- $_code : mixed