Ejemplo n.º 1
0
 /**
  * Delete objectives
  * @global type $rbacsystem
  * @return boolean
  */
 protected function deleteObjectives()
 {
     global $rbacsystem;
     foreach ($_POST['objective_ids'] as $objective_id) {
         include_once './Modules/Course/classes/class.ilCourseObjective.php';
         $objective_obj = new ilCourseObjective($this->getParentObject(), $objective_id);
         $objective_obj->delete();
     }
     include_once './Services/Tracking/classes/class.ilLPStatusWrapper.php';
     ilLPStatusWrapper::_refreshStatus($this->getParentObject()->getId());
     ilUtil::sendSuccess($this->lng->txt('crs_objectives_deleted'), true);
     $this->ctrl->redirect($this, 'listObjectives');
     return true;
 }