4 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
19 public function __construct($a_obj_id,$a_parent_obj,$a_parent_cmd)
21 $this->obj_id = $a_obj_id;
23 $this->
setId(
'sco_tr_usrs_'.$this->obj_id);
45 $users = $this->
getParentObject()->object->getTrackedUsers($this->filter[
'lastname']);
47 $versions = $this->
getParentObject()->object->getModuleVersionForUsers();
50 foreach($users as $user)
53 $tmp[
'user'] = $user[
'user_id'];
54 $tmp[
'firstname'] = $user[
'firstname'];
55 $tmp[
'lastname'] = $user[
'lastname'];
58 $tmp[
'attempts'] = (int) $attempts[$user[
'user_id']];
59 $tmp[
'version'] = (int) $versions[$user[
'user_id']];
69 $this->filter[
"lastname"] = $item->getValue();
80 $this->tpl->setVariable(
'CHECKBOX_ID', $a_set[
'user']);
81 $this->tpl->setVariable(
'VAL_USERNAME', $a_set[
'lastname'].
', '.$a_set[
'firstname']);
83 $ilCtrl->setParameter($this->
getParentObject(),
'user_id',$a_set[
'user']);
84 $this->tpl->setVariable(
'LINK_ITEM', $ilCtrl->getLinkTarget($this->getParentObject(),
'showTrackingItem'));
87 $this->tpl->setVariable(
'VAL_ATTEMPT', (
int) $a_set[
'attempts']);
88 $this->tpl->setVariable(
'VAL_VERSION', (
string) $a_set[
'version']);
104 $this->
setFormAction($ilCtrl->getFormAction($this->getParentObject()));
105 $this->
setRowTemplate(
'tpl.scorm_track_items.html',
'Modules/ScormAicc');
106 $this->
setTitle($this->lng->txt(
'cont_tracking_items'));
109 $this->
addColumn($this->lng->txt(
'name'),
'lastname',
'35%');
110 $this->
addColumn($this->lng->txt(
'last_access'),
'last_access',
'25%');
111 $this->
addColumn($this->lng->txt(
'attempts'),
'attempts',
'20%');
112 $this->
addColumn($this->lng->txt(
'version'),
'version',
'20%');
114 $this->
enable(
'select_all');
117 $this->
addMultiCommand(
'deleteTrackingForUser', $this->lng->txt(
'delete'));
118 $this->
addMultiCommand(
'decreaseAttempts', $this->lng->txt(
'decrease_attempts'));
119 $this->
addMultiCommand(
'exportSelectionUsers', $this->lng->txt(
'export'));