54 return $this->database->insertData($insert);
69 return $this->database->getDataRow($select) ?: null;
82 $update->set(
'timestamp', $update->param($this->getCurrentTime()->getTimestamp(),
ELGG_VALUE_TIMESTAMP))
87 return $this->database->updateData($update);
101 return $this->database->deleteData(
$delete);
115 return $this->database->deleteData(
$delete);
129 return $this->database->deleteData(
$delete);
deleteExpiredHashes(int $expiration)
Remove all expired hashes from the database.
static table($table, $alias=null)
{}
deleteAllHashes(\ElggUser $user)
Remove all the hashes associated with a user.
trait TimeUsing
Adds methods for setting the current time (for testing)
Manage the users_remember_me_cookies table.
getCurrentTime($modifier= '')
Get the (cloned) time.
static intoTable($table)
{}
insertHash(\ElggUser $user, string $hash)
Store a hash in the DB.
getRowFromHash(string $hash)
Get the database row for a hash.
const ELGG_VALUE_TIMESTAMP
static fromTable($table, $alias=null)
{}
updateHash(\ElggUser $user, string $hash)
Update the timestamp of a used hash.
deleteHash(string $hash)
Remove a hash from the DB.
static fromTable($table, $alias=null)
{}
__construct(Database $database)
Create a new service.