class OpignoScormQuizQuestion in Opigno 7
@file Question type class definition.
Hierarchy
- class \OpignoScormQuizQuestion extends \QuizQuestion
Expanded class hierarchy of OpignoScormQuizQuestion
1 string reference to 'OpignoScormQuizQuestion'
- opigno_scorm_quiz_quiz_question_info in modules/
scorm/ quiz/ opigno_scorm_quiz.module - Implements of hook_quiz_question_info().
File
- modules/
scorm/ quiz/ includes/ opigno_scorm_quiz.question.inc, line 8 - Question type class definition.
View source
class OpignoScormQuizQuestion extends QuizQuestion {
/**
* @copydoc QuizQuestion::validateNode()
*/
public function validateNode(array &$form) {
// No validation required
}
/**
* @copydoc QuizQuestion::getCreationForm()
*/
public function getCreationForm(array &$form_state = NULL) {
// No special fields.
return array();
}
/**
* @copydoc QuizQuestion::getAnsweringForm()
*/
public function getAnsweringForm(array $form_state = NULL, $rid) {
return array(
'tries' => array(
'#type' => 'hidden',
'#default_value' => 1,
),
);
}
/**
* @copydoc QuizQuestion::getMaximumScore()
*/
public function getMaximumScore() {
return variable_get('opigno_scorm_quiz_max_score', 50);
}
/**
* @copydoc QuizQuestion::saveNodeProperties()
*/
public function saveNodeProperties($is_new = FALSE) {
// No properties to save.
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
OpignoScormQuizQuestion:: |
public | function | @copydoc QuizQuestion::getAnsweringForm() | |
OpignoScormQuizQuestion:: |
public | function | @copydoc QuizQuestion::getCreationForm() | |
OpignoScormQuizQuestion:: |
public | function | @copydoc QuizQuestion::getMaximumScore() | |
OpignoScormQuizQuestion:: |
public | function | @copydoc QuizQuestion::saveNodeProperties() | |
OpignoScormQuizQuestion:: |
public | function | @copydoc QuizQuestion::validateNode() |