19 declare(strict_types=1);
32 public function __construct(
int $a_obj_id, ?
object $a_parent_obj,
string $a_parent_cmd)
34 $this->obj_id = $a_obj_id;
36 $this->
setId(
'sco_tr_sco_' . $this->obj_id);
66 foreach ($sco_data as $row) {
68 $tmp[
'user_id'] = $row[
'user_id'];
69 $tmp[
'score'] = $row[
'score'];
70 $tmp[
'time'] = $row[
'time'];
71 $tmp[
'status'] = $row[
'status'];
84 protected function fillRow(array $a_set): void
87 $ilCtrl = $DIC->ctrl();
89 $ilCtrl->setParameter($this->
getParentObject(),
'user_id', $a_set[
'user_id']);
94 $this->tpl->setVariable(
'LINK_USER', $ilCtrl->getLinkTarget($this->getParentObject(),
'showTrackingItemPerUser'));
95 $this->tpl->setVariable(
'VAL_USERNAME', $a_set[
'name']);
97 $this->tpl->setVariable(
'VAL_STATUS', $a_set[
'status']);
98 $this->tpl->setVariable(
'VAL_TIME', $a_set[
'time']);
99 $this->tpl->setVariable(
'VAL_SCORE', $a_set[
'score']);
105 $ilCtrl = $DIC->ctrl();
108 $this->
setFormAction($ilCtrl->getFormAction($this->getParentObject()));
109 $this->
setRowTemplate(
'tpl.scorm_track_item_sco.html',
'components/ILIAS/ScormAicc');
115 $this->
addColumn($this->
lng->txt(
'name'),
'name',
'35%');
116 $this->
addColumn($this->
lng->txt(
'cont_status'),
'status',
'25%');
117 $this->
addColumn($this->
lng->txt(
'cont_time'),
'time',
'20%');
118 $this->
addColumn($this->
lng->txt(
'cont_score'),
'score',
'20%');
fillRow(array $a_set)
Fill row template.
setFormAction(string $a_form_action, bool $a_multipart=false)
static _lookupFullname(int $a_user_id)
parse()
Parse table content.
__construct(int $a_obj_id, ?object $a_parent_obj, string $a_parent_cmd)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
__construct(Container $dic, ilPlugin $plugin)
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)