77            (int) (
$ilDB->fetchAssoc(
 
  103    $q = 
"SELECT * FROM usr_pwassist " .
 
  104        "WHERE pwassist_id = " . 
$ilDB->quote($pwassist_id, 
"text");
 
  105    $r = 
$ilDB->query($q);
 
  125    $q = 
"SELECT * FROM usr_pwassist " .
 
  126        "WHERE user_id = " . 
$ilDB->quote($user_id, 
"integer");
 
  127    $r = 
$ilDB->query($q);
 
  146    $q = 
"DELETE FROM usr_pwassist " .
 
  147         "WHERE pwassist_id = " . 
$ilDB->quote($pwassist_id, 
"text") . 
" " .
 
  148         "OR user_id = " . 
$ilDB->quote($user_id, 
'integer');
 
  149    $ilDB->manipulate($q);
 
  152    $expires = $ctime + $maxlifetime;
 
  154        "INSERT INTO usr_pwassist " .
 
  155        "(pwassist_id, expires, user_id,  ctime) " .
 
  156        "VALUES (%s,%s,%s,%s)",
 
  157        array(
"text", 
"integer", 
"integer", 
"integer"),
 
  158        array($pwassist_id, $expires, $user_id, $ctime)
 
  175    $q = 
"DELETE FROM usr_pwassist " .
 
  176         "WHERE pwassist_id = " . 
$ilDB->quote($pwassist_id, 
"text");
 
  177    $ilDB->manipulate($q);
 
  192    $q = 
"DELETE FROM usr_pwassist " .
 
  193         "WHERE expires < " . 
$ilDB->quote(time(), 
"integer");
 
  194    $ilDB->manipulate($q);
 
An exception for terminatinating execution or to throw for unit testing.
static getBytes($length)
Generate random bytes using OpenSSL or Mcrypt and mt_rand() as fallback.
db_pwassist_session_close()
close session
db_pwassist_session_destroy($pwassist_id)
destroy session
db_pwassist_session_find($user_id)
db_pwassist_session_write($pwassist_id, $maxlifetime, $user_id)
Writes serialized session data to the database.
db_pwassist_session_read($pwassist_id)
db_pwassist_session_open($save_path, $name)
Database Session Handling for the password assistance use case.
db_pwassist_session_gc()
removes all expired sessions