4 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
5 include_once
'./Services/Tracking/classes/class.ilLPCollections.php';
6 include_once
'./Services/Tracking/classes/class.ilLPObjSettings.php';
40 $this->mode = $a_mode;
95 include_once
'./classes/class.ilLink.php';
97 $this->tpl->setCurrentBlock(
'item_row');
98 $this->tpl->setVariable(
'ITEM_ID', $a_set[
'id']);
99 $this->tpl->setVariable(
'COLL_TITLE', $a_set[
'title']);
100 $this->tpl->setVariable(
'COLL_DESC',$a_set[
'description']);
105 $this->tpl->setVariable(
'ALT_IMG', $this->lng->txt(
'obj_sco'));
109 include_once
'./Services/Tree/classes/class.ilPathGUI.php';
113 $this->tpl->setVariable(
'ALT_IMG', $this->lng->txt(
'obj_' . $a_set[
'type']));
114 $this->tpl->setVariable(
'COLL_LINK',
ilLink::_getLink($a_set[
'ref_id'], $a_set[
'type']));
116 $this->tpl->setVariable(
'COLL_PATH', $this->lng->txt(
'path').
': '.
$path->getPath($this->
getNode(),$a_set[
'ref_id']));
118 $mode = $a_set[
'mode_id'];
121 $this->tpl->setVariable(
"COLL_MODE", $a_set[
'mode']);
125 $this->tpl->setVariable(
"COLL_MODE",
"");
126 $this->tpl->setVariable(
"COLL_MODE_DEACTIVATED", $a_set[
'mode']);
130 $this->tpl->setVariable(
"ANONYMIZED", $this->lng->txt(
'trac_anonymized_info_short'));
135 $this->tpl->setVariable(
"ASSIGNED_IMG_OK", $a_set[
'status']
139 $this->tpl->setVariable(
"ASSIGNED_STATUS", $a_set[
'status']
140 ? $this->lng->txt(
'trac_assigned')
141 : $this->lng->txt(
'trac_not_assigned')
143 $this->tpl->parseCurrentBlock();
147 foreach((array) $a_set[
'grouped'] as $item)
153 if(count($a_set[
'grouped']))
155 $this->tpl->setCurrentBlock(
'num_passed_items');
156 $this->tpl->setVariable(
'MIN_PASSED_TXT', $this->lng->txt(
'trac_min_passed'));
157 $this->tpl->setVariable(
'NUM_OBLIGATORY', $a_set[
'num_obligatory']);
158 $this->tpl->setVariable(
'GRP_ID', $a_set[
'grouping_id']);
159 $this->tpl->parseCurrentBlock();
169 $hasGroupedItems =
false;
177 foreach($items as $item)
179 if(in_array($item, $done))
183 $tmp[
'grouped'] = array();
188 if(count((array) $grouped_items[
'items']) > 1)
190 foreach($grouped_items[
'items'] as $gr)
197 $tmp[
'num_obligatory'] = $grouped_items[
'num_obligatory'];
198 $tmp[
'grouping_id'] = $grouped_items[
'grouping_id'];
199 $hasGroupedItems =
true;
209 $this->
addCommandButton(
'saveObligatoryMaterials', $this->lng->txt(
'trac_group_materials_save'));
225 foreach($items as $obj_id => $item)
227 $tmp[
'id'] = $obj_id;
229 $tmp[
'title'] = $item[
'title'];
232 $tmp[
"status"] = $this->
getCollection()->isAssigned($obj_id);
246 $tmp[
'ref_id'] = $item;
270 $this->
setFormAction($ilCtrl->getFormAction($this->getParentObject()));
274 $this->
setRowTemplate(
'tpl.lp_collection_row.html',
'Services/Tracking');
275 $this->
setTitle($this->lng->txt(
'trac_lp_determination'));
276 $this->
setDescription($this->lng->txt(
'trac_lp_determination_info_crs'));
280 $this->
setRowTemplate(
'tpl.lp_collection_row.html',
'Services/Tracking');
281 $this->
setTitle($this->lng->txt(
'trac_lp_determination_tutor'));
282 $this->
setDescription($this->lng->txt(
'trac_lp_determination_info_crs_tutor'));
286 $this->
setRowTemplate(
'tpl.lp_collection_scorm_row.html',
'Services/Tracking');
287 $this->
setTitle($this->lng->txt(
'trac_lp_determination'));
288 $this->
setDescription($this->lng->txt(
'trac_lp_determination_info_sco'));
293 $this->
addColumn($this->lng->txt(
'item'),
'title',
'50%');
297 $this->
addColumn($this->lng->txt(
'trac_mode'),
'mode');
302 $this->
addMultiCommand(
'assign', $this->lng->txt(
'trac_collection_assign'));
303 $this->
addMultiCommand(
'deassign', $this->lng->txt(
'trac_collection_deassign'));
304 $this->
addColumn($this->lng->txt(
'trac_determines_learning_progress'),
'status');
308 $this->
addMultiCommand(
'assign', $this->lng->txt(
'trac_manual_display'));
309 $this->
addMultiCommand(
'deassign', $this->lng->txt(
'trac_manual_no_display'));
310 $this->
addColumn($this->lng->txt(
'trac_manual_is_displayed'),
'status');
313 $this->
enable(
'select_all');
318 $this->
addMultiCommand(
'groupMaterials', $this->lng->txt(
'trac_group_materials'));
321 $this->
addMultiCommand(
'releaseMaterials', $this->lng->txt(
'trac_release_materials'));
333 switch($a_item[
'type'])
336 include_once
'./Modules/Test/classes/class.ilObjTest.php';