public function MatchingQuestion::__construct in Quiz 6.6
Same name and namespace in other branches
- 6.3 question_types/matching/matching.classes.inc \MatchingQuestion::__construct()
- 6.4 question_types/matching/matching.classes.inc \MatchingQuestion::__construct()
- 6.5 question_types/matching/matching.classes.inc \MatchingQuestion::__construct()
- 7.6 question_types/matching/matching.classes.inc \MatchingQuestion::__construct()
- 7 question_types/matching/matching.classes.inc \MatchingQuestion::__construct()
- 7.4 question_types/matching/matching.classes.inc \MatchingQuestion::__construct()
- 7.5 question_types/matching/matching.classes.inc \MatchingQuestion::__construct()
Construct a new quiz question.
Overrides QuizQuestion::__construct
File
- question_types/
matching/ matching.classes.inc, line 23 - matching.classes
Class
- MatchingQuestion
- Implementation of Matching.
Code
public function __construct($node) {
if (empty($node->match)) {
$node->match = array();
}
$this->node = $node;
}