4 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
22 public function __construct($a_parent_obj, $a_parent_cmd =
"", $a_node_id, $a_mode)
27 $this->node_id = $a_node_id;
28 $this->mode = $a_mode;
50 $this->
setData($a_collection->getTableGUIData($this->getNode()));
57 $this->
addMultiCommand(
'releaseMaterials', $this->lng->txt(
'trac_release_materials'));
59 foreach($this->row_data as $item)
63 $this->
addCommandButton(
'saveObligatoryMaterials', $this->lng->txt(
'trac_group_materials_save'));
76 global $objDefinition;
78 include_once
'./Services/Link/classes/class.ilLink.php';
80 $this->tpl->setCurrentBlock(
'item_row');
81 $this->tpl->setVariable(
'ITEM_ID', $a_set[
'id']);
82 $this->tpl->setVariable(
'COLL_TITLE', $a_set[
'title']);
83 $this->tpl->setVariable(
'COLL_DESC',$a_set[
'description']);
88 $this->tpl->setVariable(
'ALT_IMG', $this->lng->txt(
'obj_sco'));
92 if($objDefinition->isPluginTypeName($a_set[
"type"]))
98 $alt = $this->lng->txt(
'obj_' . $a_set[
'type']);
100 $this->tpl->setVariable(
'ALT_IMG', $alt);
106 $this->tpl->setVariable(
'COLL_LINK',
ilLink::_getLink($a_set[
'ref_id'], $a_set[
'type']));
109 include_once
'./Services/Tree/classes/class.ilPathGUI.php';
111 $this->tpl->setVariable(
'COLL_PATH', $this->lng->txt(
'path').
': '.
$path->getPath($this->
getNode(),$a_set[
'ref_id']));
113 $mode = $a_set[
'mode_id'];
116 $this->tpl->setVariable(
"COLL_MODE", $a_set[
'mode']);
120 $this->tpl->setVariable(
"COLL_MODE",
"");
121 $this->tpl->setVariable(
"COLL_MODE_DEACTIVATED", $a_set[
'mode']);
123 if($a_set[
"anonymized"])
125 $this->tpl->setVariable(
"ANONYMIZED", $this->lng->txt(
'trac_anonymized_info_short'));
130 $this->tpl->setVariable(
'COLL_LINK', $a_set[
'url']);
135 $this->tpl->setCurrentBlock(
"tlt");
136 $this->tpl->setVariable(
"TXT_MONTH",$this->lng->txt(
'md_months'));
137 $this->tpl->setVariable(
"TXT_DAYS",$this->lng->txt(
'md_days'));
138 $this->tpl->setVariable(
"TXT_TIME",$this->lng->txt(
'md_time'));
139 $this->tpl->setVariable(
"TLT_HINT",
'(hh:mm)');
142 $mon = floor($a_set[
"tlt"]/(60*60*24*30));
143 $tlt = $a_set[
"tlt"]%(60*60*24*30);
144 $day = floor($tlt/(60*60*24));
145 $tlt = $tlt%(60*60*24);
146 $hr = floor($tlt/(60*60));
148 $min = floor($tlt/60);
151 for($i = 0;$i <= 24;$i++)
155 $this->tpl->setVariable(
"SEL_MONTHS",
158 for($i = 0;$i <= 31;$i++)
162 $this->tpl->setVariable(
"SEL_DAYS",
166 true,$hr,$min,null,
false));
168 $this->tpl->parseCurrentBlock();
174 $this->tpl->setVariable(
"ASSIGNED_IMG_OK", $a_set[
'status']
178 $this->tpl->setVariable(
"ASSIGNED_STATUS", $a_set[
'status']
179 ? $this->lng->txt(
'trac_assigned')
180 : $this->lng->txt(
'trac_not_assigned')
182 $this->tpl->parseCurrentBlock();
186 foreach((array) $a_set[
'grouped'] as $item)
192 if(count($a_set[
'grouped']))
194 $this->tpl->setCurrentBlock(
'num_passed_items');
195 $this->tpl->setVariable(
'MIN_PASSED_TXT', $this->lng->txt(
'trac_min_passed'));
196 $this->tpl->setVariable(
'NUM_OBLIGATORY', $a_set[
'num_obligatory']);
197 $this->tpl->setVariable(
'GRP_ID', $a_set[
'grouping_id']);
198 $this->tpl->parseCurrentBlock();
206 $this->
setFormAction($ilCtrl->getFormAction($this->getParentObject()));
211 $this->
setRowTemplate(
'tpl.lp_collection_row.html',
'Services/Tracking');
212 $this->
setTitle($this->lng->txt(
'trac_lp_determination'));
213 $this->
setDescription($this->lng->txt(
'trac_lp_determination_info_crs'));
217 $this->
setRowTemplate(
'tpl.lp_collection_row.html',
'Services/Tracking');
218 $this->
setTitle($this->lng->txt(
'trac_lp_determination_tutor'));
219 $this->
setDescription($this->lng->txt(
'trac_lp_determination_info_crs_tutor'));
223 $this->
setRowTemplate(
'tpl.lp_collection_scorm_row.html',
'Services/Tracking');
224 $this->
setTitle($this->lng->txt(
'trac_lp_determination'));
225 $this->
setDescription($this->lng->txt(
'trac_lp_determination_info_sco'));
229 $this->
setRowTemplate(
'tpl.lp_collection_subitem_row.html',
'Services/Tracking');
230 $this->
setTitle($this->lng->txt(
'trac_lp_determination'));
231 $this->
setDescription($this->lng->txt(
'trac_lp_determination_info_crs'));
232 $this->lng->loadLanguageModule(
"meta");
239 $this->
addColumn($this->lng->txt(
'item'),
'title',
'50%');
245 $this->
addColumn($this->lng->txt(
'trac_mode'),
'mode');
249 $this->
addColumn($this->lng->txt(
'meta_typical_learning_time'),
'tlt');
254 $this->
addMultiCommand(
'assign', $this->lng->txt(
'trac_collection_assign'));
255 $this->
addMultiCommand(
'deassign', $this->lng->txt(
'trac_collection_deassign'));
256 $this->
addColumn($this->lng->txt(
'trac_determines_learning_progress'),
'status');
260 $this->
addMultiCommand(
'assign', $this->lng->txt(
'trac_manual_display'));
261 $this->
addMultiCommand(
'deassign', $this->lng->txt(
'trac_manual_no_display'));
262 $this->
addColumn($this->lng->txt(
'trac_manual_is_displayed'),
'status');
265 $this->
enable(
'select_all');
270 $this->
addMultiCommand(
'groupMaterials', $this->lng->txt(
'trac_group_materials'));