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 global $objDefinition;
97 include_once
'./Services/Link/classes/class.ilLink.php';
99 $this->tpl->setCurrentBlock(
'item_row');
100 $this->tpl->setVariable(
'ITEM_ID', $a_set[
'id']);
101 $this->tpl->setVariable(
'COLL_TITLE', $a_set[
'title']);
102 $this->tpl->setVariable(
'COLL_DESC',$a_set[
'description']);
107 $this->tpl->setVariable(
'ALT_IMG', $this->lng->txt(
'obj_sco'));
111 if($objDefinition->isPluginTypeName($a_set[
"type"]))
117 $alt = $this->lng->txt(
'obj_' . $a_set[
'type']);
119 $this->tpl->setVariable(
'ALT_IMG', $alt);
121 $this->tpl->setVariable(
'COLL_LINK',
ilLink::_getLink($a_set[
'ref_id'], $a_set[
'type']));
124 include_once
'./Services/Tree/classes/class.ilPathGUI.php';
126 $this->tpl->setVariable(
'COLL_PATH', $this->lng->txt(
'path').
': '.
$path->getPath($this->
getNode(),$a_set[
'ref_id']));
128 $mode = $a_set[
'mode_id'];
131 $this->tpl->setVariable(
"COLL_MODE", $a_set[
'mode']);
135 $this->tpl->setVariable(
"COLL_MODE",
"");
136 $this->tpl->setVariable(
"COLL_MODE_DEACTIVATED", $a_set[
'mode']);
140 $this->tpl->setVariable(
"ANONYMIZED", $this->lng->txt(
'trac_anonymized_info_short'));
145 $this->tpl->setVariable(
"ASSIGNED_IMG_OK", $a_set[
'status']
149 $this->tpl->setVariable(
"ASSIGNED_STATUS", $a_set[
'status']
150 ? $this->lng->txt(
'trac_assigned')
151 : $this->lng->txt(
'trac_not_assigned')
153 $this->tpl->parseCurrentBlock();
157 foreach((array) $a_set[
'grouped'] as $item)
163 if(count($a_set[
'grouped']))
165 $this->tpl->setCurrentBlock(
'num_passed_items');
166 $this->tpl->setVariable(
'MIN_PASSED_TXT', $this->lng->txt(
'trac_min_passed'));
167 $this->tpl->setVariable(
'NUM_OBLIGATORY', $a_set[
'num_obligatory']);
168 $this->tpl->setVariable(
'GRP_ID', $a_set[
'grouping_id']);
169 $this->tpl->parseCurrentBlock();
179 $hasGroupedItems =
false;
187 foreach($items as $item)
189 if(in_array($item, $done))
193 $tmp[
'grouped'] = array();
198 if(count((array) $grouped_items[
'items']) > 1)
200 foreach($grouped_items[
'items'] as $gr)
207 $tmp[
'num_obligatory'] = $grouped_items[
'num_obligatory'];
208 $tmp[
'grouping_id'] = $grouped_items[
'grouping_id'];
209 $hasGroupedItems =
true;
219 $this->
addCommandButton(
'saveObligatoryMaterials', $this->lng->txt(
'trac_group_materials_save'));
235 foreach($items as $obj_id => $item)
237 $tmp[
'id'] = $obj_id;
239 $tmp[
'title'] = $item[
'title'];
242 $tmp[
"status"] = $this->
getCollection()->isAssigned($obj_id);
256 $tmp[
'ref_id'] = $item;
280 $this->
setFormAction($ilCtrl->getFormAction($this->getParentObject()));
284 $this->
setRowTemplate(
'tpl.lp_collection_row.html',
'Services/Tracking');
285 $this->
setTitle($this->lng->txt(
'trac_lp_determination'));
286 $this->
setDescription($this->lng->txt(
'trac_lp_determination_info_crs'));
290 $this->
setRowTemplate(
'tpl.lp_collection_row.html',
'Services/Tracking');
291 $this->
setTitle($this->lng->txt(
'trac_lp_determination_tutor'));
292 $this->
setDescription($this->lng->txt(
'trac_lp_determination_info_crs_tutor'));
296 $this->
setRowTemplate(
'tpl.lp_collection_scorm_row.html',
'Services/Tracking');
297 $this->
setTitle($this->lng->txt(
'trac_lp_determination'));
298 $this->
setDescription($this->lng->txt(
'trac_lp_determination_info_sco'));
303 $this->
addColumn($this->lng->txt(
'item'),
'title',
'50%');
307 $this->
addColumn($this->lng->txt(
'trac_mode'),
'mode');
312 $this->
addMultiCommand(
'assign', $this->lng->txt(
'trac_collection_assign'));
313 $this->
addMultiCommand(
'deassign', $this->lng->txt(
'trac_collection_deassign'));
314 $this->
addColumn($this->lng->txt(
'trac_determines_learning_progress'),
'status');
318 $this->
addMultiCommand(
'assign', $this->lng->txt(
'trac_manual_display'));
319 $this->
addMultiCommand(
'deassign', $this->lng->txt(
'trac_manual_no_display'));
320 $this->
addColumn($this->lng->txt(
'trac_manual_is_displayed'),
'status');
323 $this->
enable(
'select_all');
328 $this->
addMultiCommand(
'groupMaterials', $this->lng->txt(
'trac_group_materials'));
331 $this->
addMultiCommand(
'releaseMaterials', $this->lng->txt(
'trac_release_materials'));
343 switch($a_item[
'type'])
346 include_once
'./Modules/Test/classes/class.ilObjTest.php';