Exemplo n.º 1
0
 public static function _removeTrackingDataForUser($user_id)
 {
     include_once "./Modules/Scorm2004/classes/class.ilSCORM2004DeleteData.php";
     ilSCORM2004DeleteData::removeCMIDataForUser($user_id);
     //missing updatestatus
 }
 function deleteTrackingDataOfUsers($a_users)
 {
     global $ilDB;
     include_once "./Modules/Scorm2004/classes/class.ilSCORM2004DeleteData.php";
     include_once "./Services/Tracking/classes/class.ilLPStatusWrapper.php";
     foreach ($a_users as $user) {
         ilSCORM2004DeleteData::removeCMIDataForUserAndPackage($user, $this->getId());
         ilLPStatusWrapper::_updateStatus($this->getId(), $user);
     }
 }
 /**
  * Confirmed tracking deletion
  *
  */
 function confirmedDeleteTracking()
 {
     foreach ($_POST["user"] as $user) {
         include_once "./Modules/Scorm2004/classes/class.ilSCORM2004DeleteData.php";
         ilSCORM2004DeleteData::removeCMIDataForUserAndPackage($user, $this->object->getId());
         include_once "./Services/Tracking/classes/class.ilLPStatusWrapper.php";
         ilLPStatusWrapper::_updateStatus($this->object->getId(), $user);
     }
     $this->ctrl->redirect($this, "modifyTrackingItems");
 }