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 "Services/Container");
98 $this->
initItem($a_ref_id, $a_obj_id, $a_title, $a_description);
109 $this->cust_prop = array();
110 $this->cust_commands = array();
111 $this->sub_item_html = array();
112 $this->position_enabled =
false;
114 return $this->tpl->get();
133 $this->tpl->setVariable(
'DIV_CLASS',
'ilContainerListItemOuterHighlight');
137 $this->tpl->setVariable(
'DIV_CLASS',
'ilContainerListItemOuter');
142 $this->tpl->setCurrentBlock(
"item_title");
143 $this->tpl->setVariable(
"TXT_TITLE", $this->
getTitle());
144 $this->tpl->parseCurrentBlock();
149 $this->tpl->setCurrentBlock(
"item_title_linked");
150 $this->tpl->setVariable(
"TXT_TITLE_LINKED", $this->
getTitle());
152 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id", $this->
getContainerObject()->object->getRefId());
153 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"objective_details", $this->obj_id);
154 $link = $ilCtrl->getLinkTargetByClass(
"ilrepositorygui",
"");
155 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id",
$_GET[
"ref_id"]);
157 $this->tpl->setVariable(
"HREF_TITLE_LINKED", $link);
158 $this->tpl->parseCurrentBlock();
174 $lng->loadLanguageModule(
'trac');
176 $this->tpl->setCurrentBlock(
'item_progress');
181 $this->tpl->setVariable(
'TXT_PROGRESS_INFO',$this->lng->txt(
'crs_objective_status'));
183 $this->tpl->setVariable(
'PROGRESS_ALT_IMG',$this->lng->txt(
'trac_no_attempted'));
188 $this->tpl->setVariable(
'TXT_PROGRESS_INFO',$this->lng->txt(
'crs_objective_pretest'));
192 $this->tpl->setVariable(
'PROGRESS_ALT_IMG',$this->lng->txt(
'trac_failed'));
197 $this->tpl->setVariable(
'PROGRESS_ALT_IMG',$this->lng->txt(
'trac_passed'));
203 $this->tpl->setVariable(
'TXT_PROGRESS_INFO',$this->lng->txt(
'crs_objective_result'));
207 $this->tpl->setVariable(
'PROGRESS_ALT_IMG',$this->lng->txt(
'trac_failed'));
212 $this->tpl->setVariable(
'PROGRESS_ALT_IMG',$this->lng->txt(
'trac_passed'));
218 $this->tpl->parseCurrentBlock();