public function setup_from_params() { parent::setup_from_params(); $this->showqtext = optional_param('qtext', $this->showqtext, PARAM_BOOL); $this->showresponses = optional_param('resp', $this->showresponses, PARAM_BOOL); $this->showright = optional_param('right', $this->showright, PARAM_BOOL); }
public function setup_from_params() { parent::setup_from_params(); $this->showqtext = optional_param('qtext', $this->showqtext, PARAM_BOOL); $this->showresponses = optional_param('resp', $this->showresponses, PARAM_BOOL); $this->showright = optional_param('right', $this->showright, PARAM_BOOL); if (quiz_allows_multiple_tries($this->quiz)) { $this->whichtries = optional_param('whichtries', $this->whichtries, PARAM_ALPHA); } }
public function setup_from_params() { parent::setup_from_params(); $this->onlyregraded = optional_param('onlyregraded', $this->onlyregraded, PARAM_BOOL); $this->slotmarks = optional_param('slotmarks', $this->slotmarks, PARAM_BOOL); }
public function setup_from_params() { parent::setup_from_params(); $this->onlyregraded = optional_param('regradefilter', $this->onlyregraded, PARAM_BOOL); $this->slotmarks = optional_param('detailedmarks', $this->slotmarks, PARAM_BOOL); }