Elgg
Version master
|
Manage the users_remember_me_cookies table. More...
Public Member Functions | |
__construct (protected Database $database) | |
Create a new service. More... | |
insertHash (\ElggUser $user, string $hash) | |
Store a hash in the DB. More... | |
getRowFromHash (string $hash) | |
Get the database row for a hash. More... | |
updateHash (\ElggUser $user, string $hash) | |
Update the timestamp of a used hash. More... | |
deleteHash (string $hash) | |
Remove a hash from the DB. More... | |
deleteAllHashes (\ElggUser $user) | |
Remove all the hashes associated with a user. More... | |
deleteExpiredHashes (int $expiration) | |
Remove all expired hashes from the database. More... | |
Public Attributes | |
const | TABLE_NAME = 'users_remember_me_cookies' |
Manage the users_remember_me_cookies table.
Definition at line 14 of file UsersRememberMeCookiesTable.php.
Elgg\Database\UsersRememberMeCookiesTable::__construct | ( | protected Database | $database | ) |
Create a new service.
Database | $database | the database service |
Definition at line 28 of file UsersRememberMeCookiesTable.php.
Elgg\Database\UsersRememberMeCookiesTable::deleteAllHashes | ( | \ElggUser | $user | ) |
Remove all the hashes associated with a user.
\ElggUser | $user | The user for whom we're removing hashes |
Definition at line 108 of file UsersRememberMeCookiesTable.php.
Elgg\Database\UsersRememberMeCookiesTable::deleteExpiredHashes | ( | int | $expiration | ) |
Remove all expired hashes from the database.
int | $expiration | the expiration timestamp |
Definition at line 122 of file UsersRememberMeCookiesTable.php.
Elgg\Database\UsersRememberMeCookiesTable::deleteHash | ( | string | $hash | ) |
Remove a hash from the DB.
string | $hash | The hashed token to remove |
Definition at line 94 of file UsersRememberMeCookiesTable.php.
Elgg\Database\UsersRememberMeCookiesTable::getRowFromHash | ( | string | $hash | ) |
Get the database row for a hash.
string | $hash | the hashed token |
Definition at line 61 of file UsersRememberMeCookiesTable.php.
Elgg\Database\UsersRememberMeCookiesTable::insertHash | ( | \ElggUser | $user, |
string | $hash | ||
) |
Store a hash in the DB.
\ElggUser | $user | The user for whom we're storing the hash |
string | $hash | The hashed token |
Definition at line 39 of file UsersRememberMeCookiesTable.php.
Elgg\Database\UsersRememberMeCookiesTable::updateHash | ( | \ElggUser | $user, |
string | $hash | ||
) |
Update the timestamp of a used hash.
\ElggUser | $user | the user of the associated hash |
string | $hash | the hashed token |
Definition at line 77 of file UsersRememberMeCookiesTable.php.
const Elgg\Database\UsersRememberMeCookiesTable::TABLE_NAME = 'users_remember_me_cookies' |
Definition at line 21 of file UsersRememberMeCookiesTable.php.