Esempio n. 1
0
 function delete()
 {
     $level = context_level_base::get_custom_context_level('curriculum', 'block_curr_admin');
     $result = track::delete_for_curriculum($this->id);
     $result = $result && clustercurriculum::delete_for_curriculum($this->id);
     $result = $result && curriculumcourse::delete_for_curriculum($this->id);
     $result = $result && curriculumstudent::delete_for_curriculum($this->id);
     $result = $result && taginstance::delete_for_curriculum($this->id);
     $result = $result && delete_context($level, $this->id);
     return $result && $this->data_delete_record();
 }