Example #1
0
    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);
    }
Example #2
0
 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);
     }
 }
Example #3
0
 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);
 }
Example #4
0
    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);
    }