Beispiel #1
0
 public function delete()
 {
     //delete associated classes
     $filter = new field_filter('courseid', $this->id);
     pmclass::delete_records($filter, $this->_db);
     //clean up associated records
     curriculumcourse::delete_records($filter, $this->_db);
     coursetemplate::delete_records($filter, $this->_db);
     // ELIS-8528: Remove LOs/completion elements.
     coursecompletion::delete_records($filter, $this->_db);
     parent::delete();
     $context = \local_elisprogram\context\course::instance($this->id);
     $context->delete();
 }