Elgg\PersistentLoginService::removeHash PHP Метод

removeHash() защищенный Метод

Remove a hash from the DB
protected removeHash ( string $hash ) : void
$hash string The hashed token to remove (unused before 1.9)
Результат void
    protected function removeHash($hash)
    {
        $hash = $this->db->sanitizeString($hash);
        $query = "DELETE FROM {$this->table} WHERE code = '{$hash}'";
        try {
            $this->db->deleteData($query);
        } catch (\DatabaseException $e) {
            $this->handleDbException($e);
        }
    }