public function setup_from_form_data($fromform) { parent::setup_from_form_data($fromform); $this->showqtext = $fromform->qtext; $this->showresponses = $fromform->resp; $this->showright = $fromform->right; }
public function setup_from_form_data($fromform) { parent::setup_from_form_data($fromform); $this->showqtext = $fromform->qtext; $this->showresponses = $fromform->resp; $this->showright = $fromform->right; if (quiz_allows_multiple_tries($this->quiz)) { $this->whichtries = $fromform->whichtries; } }
public function setup_from_form_data($fromform) { parent::setup_from_form_data($fromform); $this->onlyregraded = !empty($fromform->onlyregraded); $this->slotmarks = $fromform->slotmarks; }