4include_once
'./Services/Table/classes/class.ilTable2GUI.php';
5include_once
'./Modules/Scorm2004/classes/class.ilSCORM2004TrackingItems.php';
26 public function __construct($a_obj_id, $a_parent_obj, $a_parent_cmd, $a_userSelected, $a_scosSelected, $a_report)
30 $lng->loadLanguageModule(
"scormtrac");
32 $this->obj_id = $a_obj_id;
33 $this->report = $a_report;
34 $this->scosSelected=$a_scosSelected;
35 $this->userSelected=$a_userSelected;
36 if ($a_parent_cmd ==
"showTrackingItemsBySco") $this->bySCO =
true;
37 $this->lmTitle = $a_parent_obj->object->getTitle();
39 $this->
setId(
'2004'.$this->report);
40 parent::__construct($a_parent_obj, $a_parent_cmd);
43 include_once(
'./Services/PrivacySecurity/classes/class.ilPrivacySettings.php');
45 $this->allowExportPrivacy = $privacy->enabledExportSCORM();
57 if (in_array(
$l, array(
"status",
"time",
"score"))) {
62 $s = $this->lng->txt(
$l);
63 if (substr(
$l,0,14) ==
"interaction_id") $s = $this->lng->txt(substr(
$l,0,14)).
' '.substr(
$l,14);
64 if (substr(
$l,0,17) ==
"interaction_value") $s = sprintf($this->lng->txt(substr(
$l,0,17)),substr(
$l,17,(strpos(
$l,
' ')-17))).substr(
$l,strpos(
$l,
' '));
65 if (substr(
$l,0,23) ==
"interaction_description") $s = $this->lng->txt(substr(
$l,0,23)).
' '.substr(
$l,23);
69 $this->
setRowTemplate(
'tpl.scorm2004_tracking_items.html',
'Modules/Scorm2004');
70 $this->
setFormAction($ilCtrl->getFormAction($this->getParentObject()));
96 switch($this->report) {
97 case "exportSelectedCore":
100 case "exportSelectedInteractions":
103 case "exportSelectedObjectives":
106 case "exportObjGlobalToSystem":
109 case "tracInteractionItem":
112 case "tracInteractionUser":
115 case "tracInteractionUserAnswers":
118 case "exportSelectedSuccess":
140 switch($this->report) {
141 case "exportSelectedCore":
144 case "exportSelectedInteractions":
147 case "exportSelectedObjectives":
150 case "exportObjGlobalToSystem":
153 case "tracInteractionItem":
156 case "tracInteractionUser":
159 case "tracInteractionUserAnswers":
162 case "exportSelectedSuccess":
168 include_once
"Services/Utilities/classes/class.ilStr.php";
177 $lng->loadLanguageModule(
"trac");
181 include_once(
"./Services/Tracking/classes/class.ilLearningProgressBaseGUI.php");
188 if ($id==
"launch_data" || $id==
"suspend_data")
return $value;
189 if (is_numeric($value))
return round($value,2);
200 $this->tpl->setCurrentBlock(
"user_field");
202 $this->tpl->setVariable(
"VAL_UF", $val);
203 $this->tpl->parseCurrentBlock();
214 $worksheet->write($a_row, $cnt, $labels[$c][
"txt"]);
222 $lng->loadLanguageModule(
"trac");
223 include_once(
"./Services/Tracking/classes/class.ilLearningProgressBaseGUI.php");
229 $val = $this->
parseValue($c, $a_set[$c],
"user");
235 $worksheet->write($a_row, $cnt, $val);
245 $a_csv->addColumn($labels[$c][
"txt"]);
254 $lng->loadLanguageModule(
"trac");
255 include_once(
"./Services/Tracking/classes/class.ilLearningProgressBaseGUI.php");
260 $val = $this->
parseValue($c, $a_set[$c],
"user");
266 $a_csv->addColumn($val);
_getImagePathForStatus($a_status)
Get image path for status.
_getStatusText($a_status, $a_lng=null)
Get status alt text.
static _getInstance()
Get instance of ilPrivacySettings.
Class ilSCORM2004TrackingItemsTableGUI.
getSelectableColumns()
Get selectable columns.
fillHeaderExcel($worksheet, &$a_row)
Excel Version of Fill Header.
fillRowExcel($worksheet, &$a_row, $a_set)
Excel Version of Fill Row.
fillHeaderCSV($a_csv)
CSV Version of Fill Header.
parseValue($id, $value, $type)
__construct($a_obj_id, $a_parent_obj, $a_parent_cmd, $a_userSelected, $a_scosSelected, $a_report)
Constructor.
fillRowCSV($a_csv, $a_set)
CSV Version of Fill Row.
fillRow($data)
Fill table row.
tracInteractionItemColumns($b_orderBySCO, $b_allowExportPrivacy)
exportSelectedInteractionsColumns()
tracInteractionUserAnswers($a_user=array(), $a_sco=array(), $b_orderBySCO=false, $allowExportPrivacy=false)
exportSelectedSuccess($a_user=array(), $allowExportPrivacy=false)
exportSelectedCoreColumns($b_orderBySCO, $b_allowExportPrivacy)
exportSelectedCore($a_user=array(), $a_sco=array(), $b_orderBySCO=false, $allowExportPrivacy=false)
tracInteractionUserColumns($b_orderBySCO, $b_allowExportPrivacy)
exportSelectedObjectives($a_user=array(), $a_sco=array(), $b_orderBySCO=false, $allowExportPrivacy=false)
exportObjGlobalToSystem($a_user=array(), $allowExportPrivacy=false)
tracInteractionUserAnswersColumns($a_user=array(), $a_sco=array(), $b_orderBySCO, $b_allowExportPrivacy)
exportSelectedObjectivesColumns()
exportObjGlobalToSystemColumns()
tracInteractionUser($a_user=array(), $a_sco=array(), $b_orderBySCO=false, $allowExportPrivacy=false)
tracInteractionItem($a_user=array(), $a_sco=array(), $b_orderBySCO=false, $allowExportPrivacy=false)
exportSelectedInteractions($a_user=array(), $a_sco=array(), $b_orderBySCO=false, $allowExportPrivacy=false)
exportSelectedSuccessColumns()
getSelectedColumns()
Get selected columns.
setEnableHeader($a_enableheader)
Set Enable Header.
setExternalSorting($a_val)
Set external sorting.
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.
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.
setLimit($a_limit=0, $a_default_limit=0)
set max.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
setShowTemplates($a_value)
Toggle templates.
getOrderDirection()
Get order direction.
setMaxCount($a_max_count)
set max.
static img($a_src, $a_alt="", $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)