/** * @param $hash * * @return array */ public function getUserDataByLoginHash($hash) { return $this->db->queryRow("SELECT * FROM users WHERE loginHash = :hash", array(":hash" => $hash)); }
/** * @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)); }