|
|
const | USTATUS_ACTIVE = 'A' |
| |
|
const | USTATUS_CONFIRMED = 'C' |
| |
|
const | USTATUS_DISABLED = 'D' |
| |
|
const | USTATUS_NEW = '-' |
| |
|
const | USTATUS_PENDING = 'P' |
| |
|
const | USTATUS_READONLY = 'R' |
| |
Implements the User_model.
| qvci\models\User_model::add_to_role |
( |
|
$role_id | ) |
|
Add a user to a role
- Parameters
-
| qvci\models\User_model::checkpass |
( |
|
$password | ) |
|
Check if the given password matches that of the user.
- Parameters
-
| qvci\models\User_model::full_name_obj |
( |
|
$lastname_first = false | ) |
|
full_name() - object version Return the full name of a user.
- Parameters
-
| static qvci\models\User_model::full_name_static |
( |
|
$uid, |
|
|
|
$lastname_first = false |
|
) |
| |
|
static |
full_name() - static version Return the full name of a user.
- Parameters
-
| static qvci\models\User_model::get_active_users |
( |
| ) |
|
|
static |
| qvci\models\User_model::get_auto_login_string |
( |
| ) |
|
Return a string that can be stored in a cookie for auto-login.
| qvci\models\User_model::get_permissions |
( |
| ) |
|
Get a list of permissions for this user, including both individual permissions and those associated with a role.
| qvci\models\User_model::get_roles |
( |
| ) |
|
Get a list of role_ids for this user.
| static qvci\models\User_model::get_user_for_auto_login |
( |
|
$auto_login_string | ) |
|
|
static |
Given an auto-login string, return a user.
- Parameters
-
- Returns
- null|User_model
| static qvci\models\User_model::get_user_for_login |
( |
|
$name, |
|
|
|
$md5pass |
|
) |
| |
|
static |
Standard login function. Will accept login with either the email adderss or username, in that order.
- Parameters
-
| string | $name | |
| string | $md5pass | |
- Returns
- User_model
| qvci\models\User_model::has_permission |
( |
|
$perms = null, |
|
|
|
$checkvalid = true |
|
) |
| |
Determine if a user has the given permission(s)
- Parameters
-
| string|string[] | $perms |
| bool | $checkvalid | check if perms are valid |
| qvci\models\User_model::has_role |
( |
|
$role_ids | ) |
|
Determine if this user has the given role(s).
- Parameters
-
| qvci\models\User_model::is_logged_in |
( |
| ) |
|
Determine if this user is logged in to this session. Does not test to see if a user is logged in somewhere else.
| qvci\models\User_model::is_master_user |
( |
| ) |
|
Return true if this is the master user or is in a master role
- Returns
- boolean
| qvci\models\User_model::is_valid |
( |
| ) |
|
Determine if a user is valid.
| qvci\models\User_model::remove_from_role |
( |
|
$role_id | ) |
|
Remove a user from a role
- Parameters
-
| qvci\models\User_model::set_last_access |
( |
| ) |
|
Set the last-access time. This function is called during the init phase of the Authuser library.
| qvci\models\User_model::uid |
( |
| ) |
|
Handy function to get uid
| static qvci\models\User_model::user_exists |
( |
|
$name | ) |
|
|
static |
Standard authentication function to test if a user exists.
- Parameters
-
The documentation for this class was generated from the following file:
- qvci/models/User_model.php