24 include_once
"Services/Object/classes/class.ilObjectListGUI.php";
25 include_once(
'./Modules/Course/classes/class.ilCourseObjectiveResultCache.php');
58 $this->static_link_enabled =
true;
59 $this->delete_enabled =
false;
60 $this->cut_enabled =
false;
61 $this->subscribe_enabled =
false;
62 $this->link_enabled =
false;
63 $this->payment_enabled =
false;
64 $this->info_screen_enabled =
false;
65 $this->progress_enabled =
true;
70 $this->commands = array();
96 $this->tpl =&
new ilTemplate (
"tpl.container_list_item.html",
true,
true);
97 $this->
initItem($a_ref_id, $a_obj_id, $a_title, $a_description);
108 $this->cust_prop = array();
109 $this->cust_commands = array();
110 $this->sub_item_html = array();
111 $this->position_enabled =
false;
113 return $this->tpl->get();
132 $this->tpl->setVariable(
'DIV_CLASS',
'ilContainerListItemOuterHighlight');
136 $this->tpl->setVariable(
'DIV_CLASS',
'ilContainerListItemOuter');
141 $this->tpl->setCurrentBlock(
"item_title");
142 $this->tpl->setVariable(
"TXT_TITLE", $this->
getTitle());
143 $this->tpl->parseCurrentBlock();
148 $this->tpl->setCurrentBlock(
"item_title_linked");
149 $this->tpl->setVariable(
"TXT_TITLE_LINKED", $this->
getTitle());
150 $this->tpl->setVariable(
"HREF_TITLE_LINKED",
'repository.php?ref_id='.$this->
getContainerObject()->object->getRefId().
'&objective_details='.$this->obj_id);
151 $this->tpl->parseCurrentBlock();
167 $lng->loadLanguageModule(
'trac');
169 $this->tpl->setCurrentBlock(
'item_progress');
174 $this->tpl->setVariable(
'TXT_PROGRESS_INFO',$this->lng->txt(
'crs_objective_status'));
176 $this->tpl->setVariable(
'PROGRESS_ALT_IMG',$this->lng->txt(
'trac_no_attempted'));
181 $this->tpl->setVariable(
'TXT_PROGRESS_INFO',$this->lng->txt(
'crs_objective_pretest'));
185 $this->tpl->setVariable(
'PROGRESS_ALT_IMG',$this->lng->txt(
'trac_failed'));
190 $this->tpl->setVariable(
'PROGRESS_ALT_IMG',$this->lng->txt(
'trac_passed'));
196 $this->tpl->setVariable(
'TXT_PROGRESS_INFO',$this->lng->txt(
'crs_objective_result'));
200 $this->tpl->setVariable(
'PROGRESS_ALT_IMG',$this->lng->txt(
'trac_failed'));
205 $this->tpl->setVariable(
'PROGRESS_ALT_IMG',$this->lng->txt(
'trac_passed'));
211 $this->tpl->parseCurrentBlock();