32 $this->previewSession->getNumRequestedHints() > 0
39 SELECT COUNT(qht_hint_id) cnt_available
41 WHERE qht_question_fi = %s
44 $res = $this->db->queryF(
45 $query, array(
'integer'), array($this->previewSession->getQuestionId())
50 if(
$row[
'cnt_available'] > $this->previewSession->getNumRequestedHints() )
65 WHERE qht_question_fi = %s
67 ORDER BY qht_hint_index ASC
70 $res = $this->db->queryF(
71 $query, array(
'integer'), array($this->previewSession->getQuestionId())
74 while(
$row = $this->db->fetchAssoc(
$res) )
83 "no next hint found for questionId={$this->previewSession->getQuestionId()}, userId={$this->previewSession->getUserId()}"
89 $this->previewSession->addRequestedHint($questionHint->
getId());
94 return $this->previewSession->isHintRequested($hintId);
99 return $this->previewSession->getNumRequestedHints();
104 $hintIds = $this->previewSession->getRequestedHints();
108 return $requestedHintsList;