Example #1
0
 /**
  * @param $hash
  *
  * @return array
  */
 public function getUserDataByLoginHash($hash)
 {
     return $this->db->queryRow("SELECT * FROM users WHERE loginHash = :hash", array(":hash" => $hash));
 }
Example #2
0
 /**
  * @param string $key
  * @param string $value
  *
  * @return bool|int|string
  */
 function set($key, $value)
 {
     return $this->db->execute("REPLACE INTO storage (`key`, value) VALUES (:key, :value)", array(":key" => $key, ":value" => $value));
 }