4 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
22 public function __construct($a_parent_obj, $a_parent_cmd =
"", $a_node_id, $a_mode)
24 parent::__construct($a_parent_obj, $a_parent_cmd);
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'));
Creates a path for a start and endnode.
setDescription($a_val)
Set description.
static _getIcon($a_obj_id="", $a_size="big", $a_type="", $a_offline=false)
Get icon for repository item.
const LP_MODE_MANUAL_BY_TUTOR
const LP_MODE_COLLECTION_MANUAL
const LP_MODE_COLLECTION_TLT
parse(ilLPCollection $a_collection)
Read and parse items.
static makeTimeSelect($prefix, $short=true, $hour="", $minute="", $second="", $a_use_default=true, $a_further_options=array())
Creates a combination of HTML selects for time inputs.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
static lookupTxt($a_mod_prefix, $a_pl_id, $a_lang_var)
Lookup language text.
getNode()
Get node id of current learning progress item.
if(!is_array($argv)) $options
addColumn($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="")
Add a column to the header.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
static formSelect($selected, $varname, $options, $multiple=false, $direct_text=false, $size="0", $style_class="", $attribs="", $disabled=false)
Builds a select form field with options and shows the selected option first.
fillRow($a_set)
Fill template row.
static _lookupObjId($a_id)
addMultiCommand($a_cmd, $a_text)
Add Command button.
enable($a_module_name)
enables particular modules of table
static hasGroupedItems($a_obj_id)
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="")
Add Command button.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
LP collection base class.
const LP_MODE_DEACTIVATED
setFormAction($a_form_action)
Set Form action parameter.
setSelectAllCheckbox($a_select_all_checkbox)
Set the name of the checkbox that should be toggled with a select all button.
static _getLink($a_ref_id, $a_type='', $a_params=array(), $append="")
__construct($a_parent_obj, $a_parent_cmd="", $a_node_id, $a_mode)
Constructor.