You are here

public function OpignoTincanQuestionTypeResponse::__construct in Opigno TinCan Question Type 7

This constructor will init the $registration property.

Parameters

int $result_id: The result ID.

object $question_node: The question node.

array $answer: The answer.

File

includes/opigno_tincan_question_type.response.inc, line 44
This file contains the class OpignoTincanQuestionTypeResponse.

Class

OpignoTincanQuestionTypeResponse
This class goal is to manage the user's answer(s).

Code

public function __construct($result_id, stdClass $question_node, $answer) {
  parent::__construct($result_id, $question_node, $answer);
  $this->registration = self::getRegistration($result_id);
}