Exemple #1
0
 public function save($option_number = 0)
 {
     if ($this->_question->get_max_experts() == 0) {
         $this->set_marks_correct(0);
     } else {
         $this->set_marks_correct($this->correct / $this->_question->get_max_experts());
     }
     return parent::save($option_number);
 }
 /**
  * Ensure that text is in correct format before calling parent save() function
  * @return integer
  */
 public function save($option_number = 0)
 {
     $this->set_text('dummy');
     return parent::save($option_number);
 }