/**
  * Show tracking table
  * @global ilTabs $ilTabs
  * $global ilToolbar $ilToolbar
  */
 protected function showTrackingItems()
 {
     include_once './Services/PrivacySecurity/classes/class.ilPrivacySettings.php';
     $privacy = ilPrivacySettings::_getInstance();
     if (!$privacy->enabledSahsProtocolData()) {
         $this->ilias->raiseError($this->lng->txt('permission_denied'), $this->ilias->error_obj->MESSAGE);
     }
     global $ilTabs, $ilToolbar;
     include_once './Services/UIComponent/Toolbar/classes/class.ilToolbarGUI.php';
     $ilToolbar->addButton($this->lng->txt('import'), $this->ctrl->getLinkTarget($this, 'importForm'));
     $ilToolbar->addButton($this->lng->txt('cont_export_all'), $this->ctrl->getLinkTarget($this, 'exportSelectionAll'));
     $this->setSubTabs();
     $ilTabs->setTabActive('cont_tracking_data');
     $ilTabs->setSubTabActive('cont_tracking_byuser');
     include_once './Modules/ScormAicc/classes/class.ilSCORMTrackingUsersTableGUI.php';
     $tbl = new ilSCORMTrackingUsersTableGUI($this->object->getId(), $this, 'showtrackingItems');
     $tbl->parse();
     $this->tpl->setContent($tbl->getHTML());
 }
 protected function modifyTrackingItems()
 {
     global $ilAccess;
     if ($ilAccess->checkAccess("edit_learning_progress", "", $_GET["ref_id"])) {
         include_once './Services/PrivacySecurity/classes/class.ilPrivacySettings.php';
         $privacy = ilPrivacySettings::_getInstance();
         if (!$privacy->enabledSahsProtocolData()) {
             $this->ilias->raiseError($this->lng->txt('permission_denied'), $this->ilias->error_obj->MESSAGE);
         }
         global $ilTabs, $ilToolbar;
         include_once './Services/UIComponent/Toolbar/classes/class.ilToolbarGUI.php';
         $ilToolbar->addButton($this->lng->txt('import'), $this->ctrl->getLinkTarget($this, 'importForm'));
         $ilToolbar->addButton($this->lng->txt('cont_export_all'), $this->ctrl->getLinkTarget($this, 'exportAll'));
         ilObjSCORMLearningModuleGUI::setSubTabs();
         $ilTabs->setTabActive('cont_tracking_data');
         $ilTabs->setSubTabActive('cont_tracking_modify');
         include_once './Modules/ScormAicc/classes/class.ilSCORMTrackingUsersTableGUI.php';
         $tbl = new ilSCORMTrackingUsersTableGUI($this->object->getId(), $this, 'modifytrackingItems');
         $tbl->parse();
         $this->tpl->setContent($tbl->getHTML());
     }
 }