Definition at line 25 of file PersistentLoginService.php.
Elgg_PersistentLoginService::bootSession |
( |
| ) |
|
Boot the persistent login session, possibly returning the user who should be silently logged in.
- Returns
- ElggUser|null
Definition at line 106 of file PersistentLoginService.php.
Elgg_PersistentLoginService::generateToken |
( |
| ) |
|
|
protected |
Generate a random token (base 64 URL)
The first char is always "z" to indicate the value has more entropy than the previously generated ones.
- Returns
- string
Definition at line 294 of file PersistentLoginService.php.
Elgg_PersistentLoginService::getUserFromHash |
( |
|
$hash | ) |
|
Find a user with the given hash.
- Parameters
-
string | $hash | The hashed token |
- Returns
- ElggUser|null
Definition at line 150 of file PersistentLoginService.php.
Elgg_PersistentLoginService::handleDbException |
( |
DatabaseException |
$exception, |
|
|
|
$default = null |
|
) |
| |
|
protected |
Swallow a schema not upgraded exception, otherwise rethrow it.
- Parameters
-
DatabaseException | $exception | The exception to handle |
string | $default | The value to return if the table doesn't exist yet |
- Returns
- mixed
- Exceptions
-
Definition at line 218 of file PersistentLoginService.php.
Elgg_PersistentLoginService::handlePasswordChange |
( |
ElggUser |
$subject, |
|
|
ElggUser |
$modifier = null |
|
) |
| |
Elgg_PersistentLoginService::hashToken |
( |
|
$token | ) |
|
|
protected |
Elgg_PersistentLoginService::isLegacyToken |
( |
|
$token | ) |
|
|
protected |
Is the given token a legacy MD5 hash?
- Parameters
-
string | $token | The token to analyze |
- Returns
- bool
Definition at line 304 of file PersistentLoginService.php.
Elgg_PersistentLoginService::makeLoginPersistent |
( |
ElggUser |
$user | ) |
|
Elgg_PersistentLoginService::removeAllHashes |
( |
ElggUser |
$user | ) |
|
|
protected |
Elgg_PersistentLoginService::removeHash |
( |
|
$hash | ) |
|
|
protected |
Remove a hash from the DB.
- Parameters
-
string | $hash | The hashed token to remove (unused before 1.9) |
- Returns
- void
Definition at line 198 of file PersistentLoginService.php.
Elgg_PersistentLoginService::removePersistentLogin |
( |
| ) |
|
Elgg_PersistentLoginService::replaceLegacyToken |
( |
ElggUser |
$logged_in_user | ) |
|
Elgg_PersistentLoginService::setCookie |
( |
|
$token | ) |
|
|
protected |
Store the token in the client cookie (or remove the cookie)
- Parameters
-
string | $token | Empty string to remove cookie |
- Returns
- void
Definition at line 260 of file PersistentLoginService.php.
Elgg_PersistentLoginService::setSession |
( |
|
$token | ) |
|
|
protected |
Store the token in the session (or remove it from the session)
- Parameters
-
string | $token | The token to store in session. Empty string to remove. |
- Returns
- void
Definition at line 278 of file PersistentLoginService.php.
Elgg_PersistentLoginService::storeHash |
( |
ElggUser |
$user, |
|
|
|
$hash |
|
) |
| |
|
protected |
Store a hash in the DB.
- Parameters
-
ElggUser | $user | The user for whom we're storing the hash |
string | $hash | The hashed token |
- Returns
- void
Definition at line 177 of file PersistentLoginService.php.
Elgg_PersistentLoginService::$_callable_elgg_set_cookie = 'elgg_set_cookie' |
Elgg_PersistentLoginService::$_callable_get_user = 'get_user' |
Elgg_PersistentLoginService::$_callable_sleep = 'sleep' |
Elgg_PersistentLoginService::$cookie_config |
|
protected |
Elgg_PersistentLoginService::$cookie_token |
|
protected |
Elgg_PersistentLoginService::$crypto |
|
protected |
Elgg_PersistentLoginService::$db |
|
protected |
Elgg_PersistentLoginService::$session |
|
protected |
Elgg_PersistentLoginService::$table |
|
protected |
Elgg_PersistentLoginService::$time |
|
protected |
The documentation for this class was generated from the following file: