4 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
21 public function __construct($a_obj_id, $a_parent_obj, $a_parent_cmd)
23 $this->obj_id = $a_obj_id;
25 $this->
setId(
'sco_tr_sco_' . $this->obj_id);
26 parent::__construct($a_parent_obj, $a_parent_cmd);
44 include_once
'./Modules/ScormAicc/classes/SCORM/class.ilSCORMItem.php';
67 foreach ($sco_data as
$row) {
69 $tmp[
'user_id'] = $row[
'user_id'];
70 $tmp[
'score'] = $row[
'score'];
71 $tmp[
'time'] = $row[
'time'];
72 $tmp[
'status'] = $row[
'status'];
89 $ilCtrl->setParameter($this->
getParentObject(),
'user_id', $a_set[
'user_id']);
91 $this->tpl->setVariable(
'LINK_USER', $ilCtrl->getLinkTarget($this->getParentObject(),
'showTrackingItemPerUser'));
92 $this->tpl->setVariable(
'VAL_USERNAME', $a_set[
'name']);
94 $this->tpl->setVariable(
'VAL_STATUS', $a_set[
'status']);
95 $this->tpl->setVariable(
'VAL_TIME', $a_set[
'time']);
96 $this->tpl->setVariable(
'VAL_SCORE', $a_set[
'score']);
107 $this->
setFormAction($ilCtrl->getFormAction($this->getParentObject()));
108 $this->
setRowTemplate(
'tpl.scorm_track_item_sco.html',
'Modules/ScormAicc');
111 $this->
addColumn($this->lng->txt(
'name'),
'name',
'35%');
112 $this->
addColumn($this->lng->txt(
'cont_status'),
'status',
'25%');
113 $this->
addColumn($this->lng->txt(
'cont_time'),
'time',
'20%');
114 $this->
addColumn($this->lng->txt(
'cont_score'),
'score',
'20%');
parse()
Parse table content.
static _lookupFullname($a_user_id)
Lookup Full Name.
fillRow($a_set)
Fill row template.
setScoId($a_sco_id)
Set sco id.
getParentObject()
Get parent object.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
__construct($a_obj_id, $a_parent_obj, $a_parent_cmd)
Constructor.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
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.