You are here

class QuizPagesResponse in Quiz 7.5

Same name and namespace in other branches
  1. 7.6 question_types/quiz_page/quiz_page.classes.inc \QuizPagesResponse

Extension of QuizQuestionResponse.

Hierarchy

Expanded class hierarchy of QuizPagesResponse

1 string reference to 'QuizPagesResponse'
quiz_page_quiz_question_info in question_types/quiz_page/quiz_page.module
Implements hook_quiz_question_info().

File

question_types/quiz_page/quiz_page.classes.inc, line 108
Quiz page classes.

View source
class QuizPagesResponse extends QuizQuestionResponse {

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

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

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

  /**
   * Implementation of isCorrect().
   *
   * @see QuizQuestionResponse::isCorrect()
   */
  public function isCorrect() {
    return TRUE;
  }

  /**
   * Implementation of getResponse().
   *
   * @see QuizQuestionResponse::getResponse()
   */
  public function getResponse() {
    return $this->answer;
  }

  /**
   * Implementation of getReportForm().
   *
   * @see QuizQuestionResponse::getReportForm()
   */
  public function getReportForm() {
    return array(
      '#no_report' => TRUE,
    );
  }

}

Members

Namesort descending Modifiers Type Description Overrides
QuizPagesResponse::delete public function Implementation of delete(). Overrides QuizQuestionResponse::delete
QuizPagesResponse::getReportForm public function Implementation of getReportForm(). Overrides QuizQuestionResponse::getReportForm
QuizPagesResponse::getResponse public function Implementation of getResponse(). Overrides QuizQuestionResponse::getResponse
QuizPagesResponse::isCorrect public function Implementation of isCorrect(). Overrides QuizQuestionResponse::isCorrect
QuizPagesResponse::save public function Implementation of save(). Overrides QuizQuestionResponse::save
QuizPagesResponse::score public function Implementation of score(). Overrides QuizQuestionResponse::score
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::getMaxScore public function Get the max score of this question response. 1
QuizQuestionResponse::getQuizQuestion public function Get the question of this question response.
QuizQuestionResponse::getReport public function Get data suitable for reporting a user's score on the question. 1
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::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
QuizQuestionResponse::__construct public function Create a new user response. 7