The main structure to store the data of a logged in user. More...
Public Member Functions | |
updateLastActivity () | |
signupTimeStamp () | |
updatePassword ($newPassword) | |
updateEmail ($newEmail) | |
checkPermission ($permissionId) | |
getFullName () | |
storeTemporaryResult ($result) | |
storeFilterResult ($result) | |
storeSearchResult ($result) | |
loadResult ($resultIdentifier) | |
isResultAvailable ($resultIdentifier) | |
setStoredSession () | |
userLogOut () | |
Data Fields | |
$email = NULL | |
Holds the email-address of the logged in user. More... | |
$passwordHash = NULL | |
Holds the hashed password of the logged in user. More... | |
$userId = NULL | |
Holds the userid of the current user. More... | |
$sessionId = NULL | |
An id to identify the current session. More... | |
$username = NULL | |
The username of the logged in user. More... | |
Private Member Functions | |
storeResult ($result, $resultType) | |
Private Attributes | |
$tempReults = array() | |
An array to store temporary results e.g. for exports. More... | |
$searchResults = array() | |
An array to store results of a search e.g. for sorting them. More... | |
$filterResults = array() | |
An array to store results of filtering the listview. More... | |
The main structure to store the data of a logged in user.
The main structure to store the data of a logged in user. Besides storing the information and session identiefiers of a logged in user this class is also responsible for storing temporary results from searching
This class is based on the class loggedInUser from UserCake (Version 2.0.2)
This file depends on inc/common.php.
Definition at line 37 of file class.user.php.
checkPermission | ( | $permissionId) |
Check if a user has a permission
integer | $permissionId | the id of the permission that should be checked |
Definition at line 133 of file class.user.php.
getFullName | ( | ) |
Returns the full name of the user
Definition at line 165 of file class.user.php.
References fetchUserDetails().
isResultAvailable | ( | $resultIdentifier) |
Checks if the resource with the given identifier is still present
string | $resultIdentifier |
Definition at line 286 of file class.user.php.
Referenced by loadResult().
loadResult | ( | $resultIdentifier) |
string | $resultIdentifier |
Definition at line 257 of file class.user.php.
References isResultAvailable().
setStoredSession | ( | ) |
Save the current session-id to database
Definition at line 308 of file class.user.php.
signupTimeStamp | ( | ) |
Return the timestamp when the user registered
Definition at line 76 of file class.user.php.
storeFilterResult | ( | $result) |
array | $result | the result to store |
Definition at line 236 of file class.user.php.
References storeResult().
|
private |
array | $result | the result to store |
mixed | $resultType |
|
Definition at line 179 of file class.user.php.
References $filterResults, $searchResults, $tempReults, and kdsort().
Referenced by storeFilterResult(), storeSearchResult(), and storeTemporaryResult().
storeSearchResult | ( | $result) |
array | $result | the result to store |
Definition at line 247 of file class.user.php.
References storeResult().
storeTemporaryResult | ( | $result) |
array | $result | the result to store |
Definition at line 225 of file class.user.php.
References storeResult().
updateEmail | ( | $newEmail) |
Update a users email
string | $newEmail | the new e-mail-address |
Definition at line 115 of file class.user.php.
updateLastActivity | ( | ) |
Simple function to update the last activity of a user
Definition at line 59 of file class.user.php.
updatePassword | ( | $newPassword) |
Update a users password
string | $newPassword | the new password |
Definition at line 94 of file class.user.php.
References $db, $mysqli, and generateImprovedHash().
userLogOut | ( | ) |
Log the user out by reseting his session-id in the database and destroy the session variables
Definition at line 323 of file class.user.php.
References destroySession(), and resetStoredSession().
$email = NULL |
Holds the email-address of the logged in user.
Definition at line 40 of file class.user.php.
|
private |
An array to store results of filtering the listview.
Definition at line 54 of file class.user.php.
Referenced by storeResult().
$passwordHash = NULL |
Holds the hashed password of the logged in user.
Definition at line 42 of file class.user.php.
|
private |
An array to store results of a search e.g. for sorting them.
Definition at line 52 of file class.user.php.
Referenced by storeResult().
$sessionId = NULL |
An id to identify the current session.
Definition at line 46 of file class.user.php.
|
private |
An array to store temporary results e.g. for exports.
Definition at line 50 of file class.user.php.
Referenced by storeResult().
$userId = NULL |
Holds the userid of the current user.
Definition at line 44 of file class.user.php.
$username = NULL |
The username of the logged in user.
Definition at line 48 of file class.user.php.