4 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
20 public function __construct($a_obj_id, $a_parent_obj, $a_parent_cmd)
22 $this->obj_id = $a_obj_id;
24 $this->
setId(
'sco_trs_usr_' . $this->obj_id);
25 parent::__construct($a_parent_obj, $a_parent_cmd);
43 $this->user_id = $a_usr_id;
64 foreach ($user_data as
$row) {
79 $this->tpl->setVariable(
'VAL_TITLE', $a_set[
'title']);
82 $ilCtrl->setParameter($this->
getParentObject(),
'obj_id', $a_set[
'sco_id']);
83 $this->tpl->setVariable(
'LINK_SCO', $ilCtrl->getLinkTarget($this->getParentObject(),
'showTrackingItemPerUser'));
85 $this->tpl->setVariable(
'VAL_STATUS', $a_set[
'status']);
86 $this->tpl->setVariable(
'VAL_TIME', $a_set[
'time']);
87 $this->tpl->setVariable(
'VAL_SCORE', $a_set[
'score']);
98 $this->
setFormAction($ilCtrl->getFormAction($this->getParentObject()));
99 $this->
setRowTemplate(
'tpl.scorm_track_item.html',
'Modules/ScormAicc');
102 $this->
addColumn($this->lng->txt(
'title'),
'title',
'35%');
103 $this->
addColumn($this->lng->txt(
'cont_status'),
'status',
'25%');
104 $this->
addColumn($this->lng->txt(
'cont_time'),
'time',
'20%');
105 $this->
addColumn($this->lng->txt(
'cont_score'),
'score',
'20%');
parse()
Parse table content.
__construct($a_obj_id, $a_parent_obj, $a_parent_cmd)
Constructor.
static _lookupFullname($a_user_id)
Lookup Full Name.
setUserId($a_usr_id)
Set current user id.
getParentObject()
Get parent object.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
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.
fillRow($a_set)
Fill row template.