|
const | USER = 0 |
|
const | ADMIN = 1 |
|
const | ADVISOR = 2 |
|
const | USER_ACTIVE_STATUS = 'active' |
|
const | SUPER_USER = 'fossy' |
|
|
| $dbManager |
|
| $logger |
|
| $session |
|
Definition at line 18 of file UserDao.php.
◆ addGroup()
Fossology\Lib\Dao\UserDao::addGroup |
( |
|
$groupName | ) |
|
- Parameters
-
string | $groupName | raw group name as entered by the user |
- Returns
- int $groupId
- Exceptions
-
Definition at line 370 of file UserDao.php.
◆ deleteGroup()
Fossology\Lib\Dao\UserDao::deleteGroup |
( |
|
$groupId | ) |
|
◆ fixDefaultGroup()
Fossology\Lib\Dao\UserDao::fixDefaultGroup |
( |
|
$userId, |
|
|
|
$groupName |
|
) |
| |
|
private |
- Parameters
-
int | $userId | |
string | $groupName | |
- Returns
- array with keys 'group_fk', 'group_name'
Definition at line 340 of file UserDao.php.
◆ getAdminGroupMap()
Fossology\Lib\Dao\UserDao::getAdminGroupMap |
( |
|
$userId, |
|
|
|
$userLevel = 0 |
|
) |
| |
get array of groups that this user has admin access to
- Parameters
-
- Returns
- array in the format {group_pk=>group_name, group_pk=>group_name, ...}
Definition at line 70 of file UserDao.php.
◆ getAllUsers()
Fossology\Lib\Dao\UserDao::getAllUsers |
( |
| ) |
|
Get all users from users table
- Returns
- array
Definition at line 442 of file UserDao.php.
◆ getDeletableAdminGroupMap()
Fossology\Lib\Dao\UserDao::getDeletableAdminGroupMap |
( |
|
$userId, |
|
|
|
$userLevel = 0 |
|
) |
| |
get array of groups that this user has admin access to
- Parameters
-
- Returns
- array in the format {group_pk=>group_name, group_pk=>group_name, ...}
Definition at line 111 of file UserDao.php.
◆ getGroupIdByName()
Fossology\Lib\Dao\UserDao::getGroupIdByName |
( |
|
$groupName | ) |
|
◆ getGroupNameById()
Fossology\Lib\Dao\UserDao::getGroupNameById |
( |
|
$groupId | ) |
|
◆ getUserByName()
Fossology\Lib\Dao\UserDao::getUserByName |
( |
|
$userName | ) |
|
◆ getUserByPermission()
Fossology\Lib\Dao\UserDao::getUserByPermission |
( |
|
$permission | ) |
|
|
private |
◆ getUserByPk()
Fossology\Lib\Dao\UserDao::getUserByPk |
( |
|
$userPk | ) |
|
◆ getUserChoices()
Fossology\Lib\Dao\UserDao::getUserChoices |
( |
|
$groupId = null | ) |
|
◆ getUserEmail()
Fossology\Lib\Dao\UserDao::getUserEmail |
( |
|
$userId | ) |
|
◆ getUserGroupMap()
Fossology\Lib\Dao\UserDao::getUserGroupMap |
( |
|
$userId | ) |
|
get array of groups that this user has admin access to
- Parameters
-
- Returns
- array in the format {group_pk=>group_name, group_pk=>group_name, ...}
Definition at line 93 of file UserDao.php.
◆ getUserName()
Fossology\Lib\Dao\UserDao::getUserName |
( |
|
$userId | ) |
|
◆ isUserActive()
Fossology\Lib\Dao\UserDao::isUserActive |
( |
|
$userName | ) |
|
- Parameters
-
- Returns
- boolean true if user status=active
Definition at line 308 of file UserDao.php.
◆ isUserIdActive()
Fossology\Lib\Dao\UserDao::isUserIdActive |
( |
|
$userId | ) |
|
- Parameters
-
- Returns
- boolean true if user status=active
Definition at line 319 of file UserDao.php.
◆ setDefaultGroupMembership()
Fossology\Lib\Dao\UserDao::setDefaultGroupMembership |
( |
|
$userId, |
|
|
|
$groupId |
|
) |
| |
◆ updateUserLastConnection()
Fossology\Lib\Dao\UserDao::updateUserLastConnection |
( |
|
$userId | ) |
|
The documentation for this class was generated from the following file: