24include_once
"Services/Object/classes/class.ilObjectListGUI.php";
25include_once(
'./Modules/Course/classes/class.ilCourseObjectiveResultCache.php');
46 parent::__construct();
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();
81 return parent::getProperties();
94 public function getListItemHTML($a_ref_id,$a_obj_id,$a_title,$a_description,$a_manage =
false)
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);
116 $this->cust_prop = array();
117 $this->cust_commands = array();
118 $this->sub_item_html = array();
119 $this->position_enabled =
false;
121 return $this->tpl->get();
140 $this->tpl->setVariable(
'DIV_CLASS',
'ilContainerListItemOuterHighlight');
144 $this->tpl->setVariable(
'DIV_CLASS',
'ilContainerListItemOuter');
149 $this->tpl->setCurrentBlock(
"item_title");
150 $this->tpl->setVariable(
"TXT_TITLE", $this->
getTitle());
151 $this->tpl->parseCurrentBlock();
156 $this->tpl->setCurrentBlock(
"item_title_linked");
157 $this->tpl->setVariable(
"TXT_TITLE_LINKED", $this->
getTitle());
159 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id", $this->
getContainerObject()->object->getRefId());
160 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"objective_details", $this->obj_id);
161 $link =
$ilCtrl->getLinkTargetByClass(
"ilrepositorygui",
"");
162 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id",
$_GET[
"ref_id"]);
164 $this->tpl->setVariable(
"HREF_TITLE_LINKED", $link);
165 $this->tpl->parseCurrentBlock();
181 $lng->loadLanguageModule(
'trac');
183 $this->tpl->setCurrentBlock(
'item_progress');
188 $this->tpl->setVariable(
'TXT_PROGRESS_INFO',$this->lng->txt(
'crs_objective_status'));
190 $this->tpl->setVariable(
'PROGRESS_ALT_IMG',$this->lng->txt(
'trac_no_attempted'));
195 $this->tpl->setVariable(
'TXT_PROGRESS_INFO',$this->lng->txt(
'crs_objective_pretest'));
199 $this->tpl->setVariable(
'PROGRESS_ALT_IMG',$this->lng->txt(
'trac_failed'));
204 $this->tpl->setVariable(
'PROGRESS_ALT_IMG',$this->lng->txt(
'trac_passed'));
210 $this->tpl->setVariable(
'TXT_PROGRESS_INFO',$this->lng->txt(
'crs_objective_result'));
214 $this->tpl->setVariable(
'PROGRESS_ALT_IMG',$this->lng->txt(
'trac_failed'));
219 $this->tpl->setVariable(
'PROGRESS_ALT_IMG',$this->lng->txt(
'trac_passed'));
225 $this->tpl->parseCurrentBlock();
const IL_OBJECTIVE_STATUS_PRETEST_NON_SUGGEST
const IL_OBJECTIVE_STATUS_FINISHED
const IL_OBJECTIVE_STATUS_NONE
const IL_OBJECTIVE_STATUS_PRETEST
const IL_OBJECTIVE_STATUS_FINAL
List gui for course objectives.
getListItemHTML($a_ref_id, $a_obj_id, $a_title, $a_description, $a_manage=false)
get list item html
insertProgressInfo()
insert objective status
__construct()
Constructor.
insertTitle()
insert title
getProperties()
get properties
static isSuggested($a_usr_id, $a_crs_id, $a_objective_id)
check if objective is suggested
static getStatus($a_usr_id, $a_crs_id)
get status of user
getContainerObject()
get container object
getTitle()
getTitle overwritten in class.ilObjLinkResourceList.php
initItem($a_ref_id, $a_obj_id, $a_title="", $a_description="", $a_context=self::CONTEXT_REPOSITORY)
inititialize new item (is called by getItemHTML())
insertDescription()
insert item description
insertPositionField()
Insert field for positioning.
insertSubItems()
Insert subitems.
insertIconsAndCheckboxes()
Insert icons and checkboxes.
special template class to simplify handling of ITX/PEAR
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)