You are here

class QuizQuestionResponseBroken in Quiz 7.5

Hierarchy

Expanded class hierarchy of QuizQuestionResponseBroken

1 string reference to 'QuizQuestionResponseBroken'
_quiz_question_response_get_instance in question_types/quiz_question/quiz_question.module
Get an instance of a quiz question response.

File

question_types/quiz_question/quiz_question.core.inc, line 987
Classes used in the Quiz Question module.

View source
class QuizQuestionResponseBroken extends QuizQuestionResponse {

  /**
   * @see QuizQuestionResponse::getReport()
   */
  public function getReport() {
    return array(
      'answer_id' => 0,
      'is_correct' => NULL,
    );
  }

  /**
   * Create a new user response.
   *
   * @param int $result_id
   *   The result ID for the user's result set. There is one result ID per time
   *   the user takes a quiz.
   * @param stdClass $question_node
   *   The question node.
   * @param mixed $answer
   *   The answer (dependent on question type).
   */
  public function __construct($result_id, stdClass $question_node, $answer = NULL) {
    $this->quizQuestion = _quiz_question_get_instance($question_node);
  }

  /**
   * @see QuizQuestionResponse::delete()
   */
  public function delete() {
  }

  /**
   * @see QuizQuestionResponse::getResponse()
   */
  public function getResponse() {
  }

  /**
   * @see QuizQuestionResponse::save()
   */
  public function save() {
  }

  /**
   * @see QuizQuestionResponse::score()
   */
  public function score() {
  }

  /**
   * @see QuizQuestionResponse::getMaxScore()
   */
  public function getMaxScore($weight_adjusted = TRUE) {
    return 0;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
QuizQuestionResponse::$answer protected property
QuizQuestionResponse::$evaluated protected property
QuizQuestionResponse::$is_correct protected property
QuizQuestionResponse::$is_doubtful public property
QuizQuestionResponse::$is_skipped public property
QuizQuestionResponse::$question public property
QuizQuestionResponse::$quizQuestion public property
QuizQuestionResponse::$result_id protected property
QuizQuestionResponse::$score protected property 9
QuizQuestionResponse::canReview public function Can the quiz taker view the requested review?
QuizQuestionResponse::getFeedbackValues public function Get the response part of the report form. 6
QuizQuestionResponse::getFormat protected function Utility function that returns the format of the node body.
QuizQuestionResponse::getQuizQuestion public function Get the question of this question response.
QuizQuestionResponse::getReportForm public function Creates the report form for the admin pages, and for when a user gets feedback after answering questions. 2
QuizQuestionResponse::getReportFormAnswerFeedback public function Get the feedback form for the reportForm. 2
QuizQuestionResponse::getReportFormScore public function Implementation of getReportFormScore().
QuizQuestionResponse::getReportFormSubmit public function Get the submit function for the reportForm. 2
QuizQuestionResponse::getReportFormValidate public function Get the validate function for the reportForm.
QuizQuestionResponse::getScore public function Get the score of this question response.
QuizQuestionResponse::getWeightedRatio public function Get the weighted score ratio.
QuizQuestionResponse::isCorrect public function Check to see if the answer is marked as correct. 2
QuizQuestionResponse::isEvaluated public function Indicate whether the response has been evaluated (scored) yet.
QuizQuestionResponse::refreshQuestionNode public function Used to refresh this instances question node in case drupal has changed it.
QuizQuestionResponse::setResultAnswerId public function Set the target result answer ID for this Question response.
QuizQuestionResponse::toBareObject public function Represent the response as a stdClass object.
QuizQuestionResponse::viewsGetAnswers public static function Get answers for a question in a result. 3
QuizQuestionResponseBroken::delete public function Overrides QuizQuestionResponse::delete
QuizQuestionResponseBroken::getMaxScore public function Overrides QuizQuestionResponse::getMaxScore
QuizQuestionResponseBroken::getReport public function Overrides QuizQuestionResponse::getReport
QuizQuestionResponseBroken::getResponse public function Overrides QuizQuestionResponse::getResponse
QuizQuestionResponseBroken::save public function Overrides QuizQuestionResponse::save
QuizQuestionResponseBroken::score public function Overrides QuizQuestionResponse::score
QuizQuestionResponseBroken::__construct public function Create a new user response. Overrides QuizQuestionResponse::__construct