|
const | NAME = "user_edit" |
|
const | PERMISSION = "permission" |
|
const | REQUIRES_LOGIN = "requiresLogin" |
|
const | ENABLE_MENU = "ENABLE_MENU" |
|
const | LEVEL = "level" |
|
const | DEPENDENCIES = "dependencies" |
|
const | INIT_ORDER = "initOrder" |
|
const | MENU_LIST = "menuList" |
|
const | MENU_ORDER = "menuOrder" |
|
const | MENU_TARGET = "menuTarget" |
|
const | TITLE = "title" |
|
|
| $dbManager |
|
| $authHelper |
|
| $userDao |
|
|
| $container |
|
| $renderer |
|
| $microMenu |
|
Definition at line 31 of file user-edit.php.
UserEditPage::CreateUserRec |
( |
Request |
$request, |
|
|
|
$user_pk = "" |
|
) |
| |
Create a user record.
- Parameters
-
integer | $user_pk, | If empty, use form data |
- Returns
- A user record in the same associated array format that you get from a pg_fetch_assoc(). However, there may be additional fields from the data input form that are not in the users table. These additional fields start with an underscore (_pass1, _pass2, _blank_pass) that come from the edit form.
Definition at line 320 of file user-edit.php.
UserEditPage::DisplayForm |
( |
|
$UserRec, |
|
|
|
$SessionIsAdmin |
|
) |
| |
|
private |
Display the user record edit form.
- Parameters
-
$UserRec | - Database users record for the user to be edited. |
$SessionIsAdmin | - Boolean: This session is by an admin |
- Returns
- the text of the display form on success, or error on failure.
Definition at line 139 of file user-edit.php.
UserEditPage::generateNewToken |
( |
Request |
$request | ) |
|
|
private |
Generate new token based on the request sent by user.
- Parameters
-
- Exceptions
-
Definition at line 376 of file user-edit.php.
UserEditPage::getListOfActiveTokens |
( |
| ) |
|
|
private |
Get a list of active tokens for current user.
Fetches the tokens for current user from DB and format it for twig template. Also check if the token is expired.
- Returns
- array
Definition at line 428 of file user-edit.php.
UserEditPage::getListOfExpiredTokens |
( |
| ) |
|
|
private |
Get a list of expired tokens for current user.
- Returns
- array
Definition at line 459 of file user-edit.php.
UserEditPage::getUserGroupSelect |
( |
|
$userRec | ) |
|
|
private |
Generate the HTML option list of groups for the user
- Parameters
-
array | $userRec | User record being updated |
- Returns
- string HTML option list
Definition at line 489 of file user-edit.php.
UserEditPage::GetUserRec |
( |
|
$user_pk | ) |
|
Get a user record.
- Parameters
-
$user_pk | fetch this users db record |
- Returns
- users db record
Definition at line 288 of file user-edit.php.
UserEditPage::handle |
( |
Request |
$request | ) |
|
|
protected |
Allow user to change their account settings (users db table).
If the user is an Admin, they can change settings for any user.
This is called in the following circumstances:
1) User clicks on Admin > Edit User Account
2) User has chosen a user to edit from the 'userid' select list
3) User hit submit to update user data
Definition at line 71 of file user-edit.php.
UserEditPage::IsSessionAdmin |
( |
|
$UserRec | ) |
|
|
private |
Determine if the session user is an admin.
- Returns
- TRUE if the session user is an admin. Otherwise, return FALSE
Definition at line 306 of file user-edit.php.
UserEditPage::UpdateUser |
( |
|
$UserRec, |
|
|
|
$SessionIsAdmin |
|
) |
| |
Validate and update the user data.
- Parameters
-
$UserRec | - Database record for the user to be edited. |
- Returns
- NULL on success, string (error text) on failure.
Definition at line 194 of file user-edit.php.
The documentation for this class was generated from the following file: