public function __construct($current, $section, $cm, $course) { self::$reviewfields = array( 'attempt' => get_string('theattempt', 'quiz'), 'correctness' => get_string('whethercorrect', 'question'), 'marks' => get_string('marks', 'question'), 'specificfeedback' => get_string('specificfeedback', 'question'), 'generalfeedback' => get_string('generalfeedback', 'question'), 'rightanswer' => get_string('rightanswer', 'question'), 'overallfeedback' => get_string('overallfeedback', 'quiz'), ); parent::__construct($current, $section, $cm, $course); }
/** * constructor * @see moodleform_mod::moodleform_mod */ public function __construct($current, $section, $cm, $course) { // Pre parse mod data if exists (in case not new). if ($current && property_exists($current, 'setting')) { $strategyoptions = json_decode($current->setting, true); foreach ($strategyoptions as $stratkey => $strategy) { foreach ($strategy as $key => $option) { $current->{$this->get_settingsfield_identifier($stratkey, $key)} = $option; } } } parent::__construct($current, $section, $cm, $course); $this->msgerrorrequired = get_string('err_required', 'form'); }
/** * Constructor */ public function __construct($current, $section, $cm, $course) { $this->course = $course; parent::__construct($current, $section, $cm, $course); }
public function __construct($current, $section, $cm, $course) { parent::__construct($current, $section, $cm, $course); }