◆ __construct()
AdminUser::__construct |
( |
|
$login = '' | ) |
|
Class constructor.
- Parameters
-
- Returns
- void
◆ get()
Load adminuser object.
- Returns
- boolean success
◆ initialise()
AdminUser::initialise |
( |
| ) |
|
Initialise new empty adminuser object.
- Returns
- boolean result
◆ save()
Save adminuser object.
- Returns
- boolean result
◆ get_fromDatabase()
AdminUser::get_fromDatabase |
( |
| ) |
|
|
private |
Load object from database.
- Returns
- boolean success
◆ create_toDatabase()
AdminUser::create_toDatabase |
( |
| ) |
|
|
private |
Create new adminser object to database.
- Returns
- boolean success
◆ update_toDatabase()
AdminUser::update_toDatabase |
( |
| ) |
|
|
private |
Update adminuser object to database.
- Returns
- boolean success
◆ delete_fromDatabase()
AdminUser::delete_fromDatabase |
( |
| ) |
|
|
private |
Delete adminuser object from database.
- Returns
- boolean success
◆ install()
Install adminuser table and first adminuser object in database.
- Returns
- boolean success
◆ is_installed()
AdminUser::is_installed |
( |
| ) |
|
Check is object is installed.
- Returns
- boolean success
◆ update_2FAData()
AdminUser::update_2FAData |
( |
|
$data = '' | ) |
|
Update 2FA data.
- Parameters
-
- Returns
- boolean success
◆ reset_2FAData()
AdminUser::reset_2FAData |
( |
|
$data = '' | ) |
|
Reset 2FA data.
- Returns
- boolean success
◆ get_fromHeader()
AdminUser::get_fromHeader |
( |
|
$prefix = '' | ) |
|
Load adminuser object from header.
- Parameters
-
◆ get_fromArray()
AdminUser::get_fromArray |
( |
|
$data | ) |
|
Load adminuser object from array.
- Returns
- void
◆ check_data()
AdminUser::check_data |
( |
| ) |
|
Parse and check all data.
- Returns
- boolean success
◆ exists_login()
AdminUser::exists_login |
( |
|
$login | ) |
|
Check if $login login already exists.
- Parameters
-
- Returns
- boolean result
◆ can_login()
AdminUser::can_login |
( |
|
$pwd | ) |
|
Try to log in.
- Parameters
-
- Returns
- boolean result
◆ initialise_rights()
AdminUser::initialise_rights |
( |
| ) |
|
Initialise new rights combining modules defaults rights and current admin user ones.
- Returns
- array
◆ decode_rights()
AdminUser::decode_rights |
( |
|
$module | ) |
|
|
private |
Decode rights for given module.
- Returns
- void
◆ encode_rights()
AdminUser::encode_rights |
( |
|
$module, |
|
|
|
$rights |
|
) |
| |
|
private |
Encode rights for given module.
- Parameters
-
string | $module | |
array | $rights | |
- Returns
- void
◆ get_right()
AdminUser::get_right |
( |
|
$module, |
|
|
|
$idx |
|
) |
| |
Return permission for a module
- Parameters
-
string | $module | |
integer | $idx | |
- Returns
- boolean result
◆ get_userList()
AdminUser::get_userList |
( |
|
$where = '' , |
|
|
|
$objMode = false |
|
) |
| |
Return the user list corresponding to the where sql statement
- Parameters
-
string | $where | |
boolean | $objMode | |
- Returns
- array
◆ get_activeUserList()
AdminUser::get_activeUserList |
( |
|
$objMode = false | ) |
|
Return active user list.
- Parameters
-
- Returns
- array
◆ get_nameDisplay()
AdminUser::get_nameDisplay |
( |
| ) |
|
Return user name display
- Returns
- string
◆ get_usersStatusList()
AdminUser::get_usersStatusList |
( |
|
$params = array() | ) |
|
Return users status list.
- Parameters
-
- Returns
- array
◆ static_getList()
AdminUser::static_getList |
( |
| ) |
|
Return the user login list.
- Returns
- array
◆ get_translation()
AdminUser::get_translation |
( |
|
$translation, |
|
|
|
$params = null |
|
) |
| |
|
private |
Return translation.
- Parameters
-
string | $translation | |
array | $params | |
- Returns
- string
◆ update_toVersion1_1()
AdminUser::update_toVersion1_1 |
( |
| ) |
|
Execute version 1.1 update.
- Returns
- boolean success
◆ update_toVersion1_2()
AdminUser::update_toVersion1_2 |
( |
| ) |
|
Execute version 1.2 update.
- Returns
- boolean success
◆ $login
◆ $pwd
◆ $email
◆ $active
◆ $webmaster
◆ $firstname
◆ $lastname
◆ $address
◆ $rights
◆ $twoFactorData
AdminUser::$twoFactorData |
◆ $rights_
◆ $is_new
◆ $change_pwd
◆ $pwd_conf
◆ $full_update
◆ $_libParent
◆ $_libError
AdminUser::$_libError = '' |
◆ $_libDesc
The documentation for this class was generated from the following file: