![]() |
PHPDevShell 3.1.3-Stable
PHP OOP RAD Development Framework
|
Public Member Functions | |
| lookupCookieLogin ($cookie) | |
| selectUserFromCookie ($cookie) | |
| selectCookie ($id_crypt) | |
| setUserCookie ($user_id) | |
| deleteCookie ($cookie_id) | |
| clearUserCookie ($user_id) | |
| loginForm ($return=false) | |
| controlLogin () | |
| processLogin ($username, $password) | |
| lookupUser ($username, $password= '') | |
| setLogin ($select_user_array, $persistent=false) | |
| clearLogin ($set_guest=true) | |
| setGuest () | |
| isLoggedIn () | |
This base class implements the fundations for an authentification plugin It doesn't actually provides authentification (it will reject any request) but provides structure, cookie support ("remember me") and writing to the system log
Note: it doesn't in any deal with template or GUI, the auth plugin must do that
| clearLogin | ( | $ | set_guest = true | ) |
Destroys login session data.
Implements iBaseLogin.
| clearUserCookie | ( | $ | user_id | ) |
Delete the current persistent cookie from the db and kill the cookie on the user end.
| controlLogin | ( | ) |
| deleteCookie | ( | $ | cookie_id | ) |
Delete cookie from database.
| int | $cookie_id |
| isLoggedIn | ( | ) |
| loginForm | ( | $ | return = false | ) |
Loads the username & password html template form.
| boolean | $return |
Implements iBaseLogin.
Reimplemented in StandardLogin.
| lookupCookieLogin | ( | $ | cookie | ) |
Search the database for the given credentials from a persistent cookie
| string | $cookie |
| lookupUser | ( | $ | username, |
| $ | password = '' |
||
| ) |
Search the database for the given credentials
| string | $username | |
| string | $password |
Implements iBaseLogin.
Reimplemented in StandardLogin.
| processLogin | ( | $ | username, |
| $ | password | ||
| ) |
Checks to see if user and password is correct and allowed. Then creates session data accordingly.
| string | $username | |
| string | $password |
Implements iBaseLogin.
Reimplemented in StandardLogin.
| selectCookie | ( | $ | id_crypt | ) |
Select cookie data by providing cookie crypt key.
| varchar | $id_crypt |
| selectUserFromCookie | ( | $ | cookie | ) |
Selects user details from provided cookie.
| varchar | $cookie |
| setGuest | ( | ) |
Sets all settings to guest account.
Implements iBaseLogin.
| setLogin | ( | $ | select_user_array, |
| $ | persistent = false |
||
| ) |
Make the given user the logged in user
| array | $select_user_array |
Implements iBaseLogin.
| setUserCookie | ( | $ | user_id | ) |
Set a persistent cookie to be used as a remember me function
| int | $user_id |