![]() |
CMS
Version 3.9
|
Provides the interface to the user model for the application. More...
Public Member Functions | |
UserManager () | |
Creates a new UserManager object. More... | |
getUsernameField () | |
Returns the field name of the username in the user model. More... | |
getEmailField () | |
Returns the field name of the email field in the user model. More... | |
getUserClass () | |
Returns the datamodel class name of the user model. More... | |
getUser ($user_id) | |
Retrieves the user with the specified id. More... | |
getActiveClause () | |
Return a clause that constrains records on those that are active. More... | |
isActive ($user) | |
Determine if the specified user account is active. More... | |
getUserByName ($username) | |
getUserByEmail ($email) | |
getUserFullName ($user) | |
Return the user's full name. More... | |
validatePassword ($username, $password) | |
Validates the user's username and password, returning the matching user. More... | |
loadDefaultSession ($user) | |
Load any supporting information into the user's session after a valid login. More... | |
loginRedirect ($user) | |
Redirect the user after a valid login. More... | |
getLoginRedirect ($user) | |
Redirect the user after a valid login. More... | |
getPasswordResetPage () | |
Returns the identifier of the password reset page. More... | |
getPasswordHelpText () | |
getPasswordHelpUserNameLabel () | |
Static Public Member Functions | |
static | deleteRole ($del_role) |
static | onInitialize () |
static | upgradeComponent ($version) |
Provides the interface to the user model for the application.
This implementation uses the default user model as shipped with Fakoli/CMS. If you need to use a different user model you can simply implement your own 'user' component and include it in your application web root to override this one. In that case you must supply a UserManager class that conforms to the interface below.
Definition at line 49 of file user_manager.inc.
|
static |
Definition at line 223 of file user_manager.inc.
UserManager::getActiveClause | ( | ) |
Return a clause that constrains records on those that are active.
Definition at line 101 of file user_manager.inc.
UserManager::getEmailField | ( | ) |
Returns the field name of the email field in the user model.
Definition at line 71 of file user_manager.inc.
UserManager::getLoginRedirect | ( | $user | ) |
Redirect the user after a valid login.
$user | the user object |
Definition at line 188 of file user_manager.inc.
UserManager::getPasswordHelpText | ( | ) |
Definition at line 213 of file user_manager.inc.
UserManager::getPasswordHelpUserNameLabel | ( | ) |
Definition at line 218 of file user_manager.inc.
UserManager::getPasswordResetPage | ( | ) |
Returns the identifier of the password reset page.
Definition at line 208 of file user_manager.inc.
UserManager::getUser | ( | $user_id | ) |
Retrieves the user with the specified id.
$user_id | the primary key identifying the user |
Definition at line 90 of file user_manager.inc.
UserManager::getUserByEmail | ( | ) |
Definition at line 127 of file user_manager.inc.
UserManager::getUserByName | ( | $username | ) |
Definition at line 115 of file user_manager.inc.
UserManager::getUserClass | ( | ) |
Returns the datamodel class name of the user model.
Definition at line 80 of file user_manager.inc.
UserManager::getUserFullName | ( | $user | ) |
Return the user's full name.
string | $user | the user object to be queried |
Definition at line 142 of file user_manager.inc.
UserManager::getUsernameField | ( | ) |
Returns the field name of the username in the user model.
Definition at line 62 of file user_manager.inc.
UserManager::isActive | ( | $user | ) |
Determine if the specified user account is active.
SiteUser | $user |
Definition at line 110 of file user_manager.inc.
UserManager::loadDefaultSession | ( | $user | ) |
Load any supporting information into the user's session after a valid login.
$user | the user object |
Definition at line 171 of file user_manager.inc.
UserManager::loginRedirect | ( | $user | ) |
Redirect the user after a valid login.
$user | the user object |
Definition at line 179 of file user_manager.inc.
|
static |
Definition at line 236 of file user_manager.inc.
|
static |
Definition at line 249 of file user_manager.inc.
UserManager::UserManager | ( | ) |
UserManager::validatePassword | ( | $username, | |
$password | |||
) |
Validates the user's username and password, returning the matching user.
$username | the user's username |
$password | the supplied password |
Definition at line 153 of file user_manager.inc.