FOSSology
4.4.0
Open Source License Compliance by Open Source Software
|
Public Member Functions | |
handle (Request $request) | |
Allow user to change their account settings (users db table). More... | |
UpdateUser ($UserRec, $SessionIsAdmin) | |
Validate and update the user data. More... | |
GetUserRec ($user_pk) | |
Get a user record. More... | |
IsSessionAdmin ($UserRec) | |
Determine if the session user is an admin. More... | |
CreateUserRec (Request $request, $user_pk="") | |
Create a user record. More... | |
getListOfActiveTokens () | |
Get a list of active tokens for current user. More... | |
getListOfExpiredTokens () | |
getMaxExpiredTokenRetentionPeriod () | |
getMaxExpiredTokenRetentionPeriod() get the refresh time from DB. @Returns number of days to retain expired token. | |
Public Member Functions inherited from Fossology\Lib\Plugin\DefaultPlugin | |
__construct ($name, $parameters=array()) | |
getName () | |
getVersion () | |
getTitle () | |
isRequiresLogin () | |
getDependency () | |
getPluginLevel () | |
getDBaccess () | |
getState () | |
getInitOrder () | |
getNoMenu () | |
getResponse () | |
getObject ($name) | |
preInstall () | |
postInstall () | |
unInstall () | |
execute () | |
isLoggedIn () | |
__get ($name) | |
__toString () | |
Public Attributes | |
const | NAME = "user_edit" |
Public Attributes inherited from Fossology\Lib\Plugin\DefaultPlugin | |
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" |
Private Member Functions | |
DisplayForm ($UserRec, $SessionIsAdmin) | |
Display the user record edit form. More... | |
getUserGroupSelect ($userRec) | |
getListOfActiveClients () | |
Get a list of active clients for current user. More... | |
getListOfExpiredClients () | |
Private Attributes | |
$dbManager | |
$authHelper | |
$userDao | |
Additional Inherited Members | |
Protected Member Functions inherited from Fossology\Lib\Plugin\DefaultPlugin | |
RegisterMenus () | |
Customize submenus. | |
render ($templateName, $vars=null, $headers=null) | |
getDefaultHeaders () | |
getDefaultVars () | |
mergeWithDefault ($vars) | |
flushContent ($content) | |
Protected Attributes inherited from Fossology\Lib\Plugin\DefaultPlugin | |
$container | |
$renderer | |
$microMenu | |
Definition at line 23 of file user-edit.php.
UserEditPage::CreateUserRec | ( | Request | $request, |
$user_pk = "" |
|||
) |
Create a user record.
integer | $user_pk, | If empty, use form data |
Exception |
Definition at line 399 of file user-edit.php.
|
private |
Display the user record edit form.
$UserRec | - Database users record for the user to be edited. |
$SessionIsAdmin | - Boolean: This session is by an admin |
Definition at line 165 of file user-edit.php.
|
private |
Get a list of active clients for current user.
Fetches the clients for current user from DB and format it for twig template.
Definition at line 644 of file user-edit.php.
UserEditPage::getListOfActiveTokens | ( | ) |
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.
Definition at line 523 of file user-edit.php.
|
private |
Get a list of revoked clients for current user.
Definition at line 672 of file user-edit.php.
UserEditPage::getListOfExpiredTokens | ( | ) |
Get a list of expired tokens for current user.
Definition at line 555 of file user-edit.php.
|
private |
Generate the HTML option list of groups for the user
array | $userRec | User record being updated |
Definition at line 586 of file user-edit.php.
UserEditPage::GetUserRec | ( | $user_pk | ) |
Get a user record.
$user_pk | fetch this users db record |
Exception |
Definition at line 366 of file user-edit.php.
UserEditPage::handle | ( | Request | $request | ) |
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
Reimplemented from Fossology\Lib\Plugin\DefaultPlugin.
Definition at line 63 of file user-edit.php.
UserEditPage::IsSessionAdmin | ( | $UserRec | ) |
Determine if the session user is an admin.
Definition at line 384 of file user-edit.php.
UserEditPage::UpdateUser | ( | $UserRec, | |
$SessionIsAdmin | |||
) |
Validate and update the user data.
$UserRec | - Database record for the user to be edited. |
Definition at line 234 of file user-edit.php.