Beispiel #1
0
 public function data_preprocessing(&$defaultvalues)
 {
     global $DB;
     parent::data_preprocessing($defaultvalues);
     if ($this->_instance) {
         $markers = $DB->get_records('emarking_markers', array('emarking' => $this->_instance));
         foreach ($markers as $marker) {
             $defaultvalues['marker-' . $marker->marker] = 1;
         }
     }
     $defaultvalues["id"] = $this->_customdata["id"];
 }