4include_once 
'./Services/Table/classes/class.ilTable2GUI.php';
 
    5include_once 
'./Modules/ScormAicc/classes/class.ilSCORMTrackingItems.php';
 
   26    public function __construct($a_obj_id, $a_parent_obj, $a_parent_cmd, $a_userSelected, $a_scosSelected, $a_report)
 
   31        $ilAccess = 
$DIC[
'ilAccess'];
 
   33        $rbacsystem = 
$DIC[
'rbacsystem'];
 
   34        $lng->loadLanguageModule(
"scormtrac");
 
   36        $this->obj_id = $a_obj_id;
 
   37        $this->report = $a_report;
 
   38        $this->scosSelected = $a_scosSelected;
 
   39        $this->userSelected = $a_userSelected;
 
   40        if ($a_parent_cmd == 
"showTrackingItemsBySco") {
 
   43        $this->lmTitle = $a_parent_obj->object->getTitle();
 
   45        $this->
setId(
'AICC' . $this->report);
 
   46        parent::__construct($a_parent_obj, $a_parent_cmd);
 
   49        include_once(
'./Services/PrivacySecurity/classes/class.ilPrivacySettings.php');
 
   51        $this->allowExportPrivacy = $privacy->enabledExportSCORM();
 
   62            if (in_array(
$l, array(
"status", 
"time", 
"score"))) {
 
   67            $s = $this->lng->txt(
$l);
 
   68            if (substr(
$l, 0, 14) == 
"interaction_id") {
 
   69                $s = $this->lng->txt(substr(
$l, 0, 14)) . 
' ' . substr(
$l, 14);
 
   71            if (substr(
$l, 0, 17) == 
"interaction_value") {
 
   72                $s = sprintf($this->lng->txt(substr(
$l, 0, 17)), substr(
$l, 17, (strpos(
$l, 
' ') - 17))) . substr(
$l, strpos(
$l, 
' '));
 
   74            if (substr(
$l, 0, 23) == 
"interaction_description") {
 
   75                $s = $this->lng->txt(substr(
$l, 0, 23)) . 
' ' . substr(
$l, 23);
 
   80        $this->
setRowTemplate(
'tpl.scorm_tracking_items.html', 
'Modules/ScormAicc');
 
  107        switch ($this->report) {
 
  108            case "exportSelectedCore":
 
  111            case "exportSelectedRaw":
 
  114            case "exportSelectedInteractions":
 
  117            case "exportSelectedObjectives":
 
  120            case "tracInteractionItem":
 
  121                $cols = ilSCORMTrackingItems::tracInteractionItemColumns($this->bySCO, $this->allowExportPrivacy);
 
  123            case "tracInteractionUser":
 
  124                $cols = ilSCORMTrackingItems::tracInteractionUserColumns($this->bySCO, $this->allowExportPrivacy);
 
  126            case "tracInteractionUserAnswers":
 
  127                $cols = ilSCORMTrackingItems::tracInteractionUserAnswersColumns($this->userSelected, $this->scosSelected, $this->bySCO, $this->allowExportPrivacy);
 
  129            case "exportSelectedSuccess":
 
  156        switch ($this->report) {
 
  157            case "exportSelectedCore":
 
  158                $tr_data = $ilSCORMTrackingItems->exportSelectedCore($this->userSelected, $this->scosSelected, $this->bySCO, $this->allowExportPrivacy, $this->
getObjId(), $this->lmTitle);
 
  160            case "exportSelectedRaw":
 
  161                $tr_data = $ilSCORMTrackingItems->exportSelectedRaw($this->userSelected, $this->scosSelected, $this->bySCO, $this->allowExportPrivacy, $this->
getObjId(), $this->lmTitle);
 
  163            case "exportSelectedInteractions":
 
  164                $tr_data = $ilSCORMTrackingItems->exportSelectedInteractions($this->userSelected, $this->scosSelected, $this->bySCO, $this->allowExportPrivacy, $this->
getObjId(), $this->lmTitle);
 
  166            case "exportSelectedObjectives":
 
  167                $tr_data = $ilSCORMTrackingItems->exportSelectedObjectives($this->userSelected, $this->scosSelected, $this->bySCO, $this->allowExportPrivacy, $this->
getObjId(), $this->lmTitle);
 
  169            case "tracInteractionItem":
 
  170                $tr_data = $ilSCORMTrackingItems->tracInteractionItem($this->userSelected, $this->scosSelected, $this->bySCO, $this->allowExportPrivacy, $this->
getObjId(), $this->lmTitle);
 
  172            case "tracInteractionUser":
 
  173                $tr_data = $ilSCORMTrackingItems->tracInteractionUser($this->userSelected, $this->scosSelected, $this->bySCO, $this->allowExportPrivacy, $this->
getObjId(), $this->lmTitle);
 
  175            case "tracInteractionUserAnswers":
 
  176                $tr_data = $ilSCORMTrackingItems->tracInteractionUserAnswers($this->userSelected, $this->scosSelected, $this->bySCO, $this->allowExportPrivacy, $this->
getObjId(), $this->lmTitle);
 
  178            case "exportSelectedSuccess":
 
  179                $tr_data = $ilSCORMTrackingItems->exportSelectedSuccess($this->userSelected, $this->allowExportPrivacy, $this->
getObjId(), $this->lmTitle);
 
  184            include_once 
"Services/Utilities/classes/class.ilStr.php";
 
  194        $lng->loadLanguageModule(
"trac");
 
  197                include_once(
"./Services/Tracking/classes/class.ilLearningProgressBaseGUI.php");
 
  204        if (
$id == 
"launch_data" || 
$id == 
"suspend_data") {
 
  207        if (is_numeric($value)) {
 
  208            return round($value, 2);
 
  221            $this->tpl->setCurrentBlock(
"user_field");
 
  223            $this->tpl->setVariable(
"VAL_UF", $val);
 
  224            $this->tpl->parseCurrentBlock();
 
  233            $worksheet->
setCell($a_row, $cnt, $labels[
$c][
"txt"]);
 
  242        $lng->loadLanguageModule(
"trac");
 
  243        include_once(
"./Services/Tracking/classes/class.ilLearningProgressBaseGUI.php");
 
  246            if (
$c != 
'status') {
 
  251            $worksheet->
setCell($a_row, $cnt, $val);
 
  260            $a_csv->addColumn($labels[
$c][
"txt"]);
 
  270        $lng->loadLanguageModule(
"trac");
 
  271        include_once(
"./Services/Tracking/classes/class.ilLearningProgressBaseGUI.php");
 
  273            if (
$c != 
'status') {
 
  278            $a_csv->addColumn($val);
 
An exception for terminatinating execution or to throw for unit testing.
setCell($a_row, $a_col, $a_value, $a_datatype=null)
Set cell value.
static _getStatusText($a_status, $a_lng=null)
Get status alt text.
static _getImagePathForStatus($a_status)
Get image path for status.
static _getInstance()
Get instance of ilPrivacySettings.
Class ilSCORMTrackingItemsTableGUI.
parseValue($id, $value, $type)
fillHeaderCSV($a_csv)
CSV Version of Fill Header.
__construct($a_obj_id, $a_parent_obj, $a_parent_cmd, $a_userSelected, $a_scosSelected, $a_report)
Constructor.
fillRowExcel(ilExcel $worksheet, &$a_row, $a_set)
Excel Version of Fill Row.
fillRowCSV($a_csv, $a_set)
CSV Version of Fill Row.
fillRow($data)
Fill table row.
getSelectableColumns()
Get selectable columns.
fillHeaderExcel(ilExcel $worksheet, &$a_row)
Excel Version of Fill Header.
Class ilSCORMTrackingItems.
static exportSelectedSuccessColumns()
static exportSelectedObjectivesColumns()
static exportSelectedRawColumns()
static exportSelectedCoreColumns($b_orderBySCO, $b_allowExportPrivacy)
static exportSelectedInteractionsColumns()
getSelectedColumns()
Get selected columns.
setEnableHeader($a_enableheader)
Set Enable Header.
setExternalSorting($a_val)
Set external sorting.
setExportFormats(array $formats)
Set available export formats.
determineOffsetAndOrder($a_omit_offset=false)
Determine offset and order.
setData($a_data)
set table data @access public
setEnableTitle($a_enabletitle)
Set Enable Title.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
determineLimit()
Determine the limit.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
setShowTemplates($a_value)
Toggle templates.
getOrderDirection()
Get order direction.
static img($a_src, $a_alt=null, $a_width="", $a_height="", $a_border=0, $a_id="", $a_class="")
Build img tag.
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
static stableSortArray($array, $a_array_sortby, $a_array_sortorder=0, $a_numeric=false)
Sort an aray using a stable sort algorithm, which preveserves the sequence of array elements which ha...
if(!array_key_exists('StateId', $_REQUEST)) $id