24 include_once
"Services/Object/classes/class.ilObjectListGUI.php";
25 include_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->info_screen_enabled =
false;
64 $this->progress_enabled =
true;
69 $this->commands =
array();
80 return parent::getProperties();
95 $this->tpl =
new ilTemplate(
"tpl.container_list_item.html",
true,
true,
96 "Services/Container");
97 $this->
initItem($a_ref_id, $a_obj_id, $a_title, $a_description);
115 $this->cust_prop =
array();
116 $this->cust_commands =
array();
117 $this->sub_item_html =
array();
118 $this->position_enabled =
false;
120 return $this->tpl->get();
139 $this->tpl->setVariable(
'DIV_CLASS',
'ilContainerListItemOuterHighlight');
143 $this->tpl->setVariable(
'DIV_CLASS',
'ilContainerListItemOuter');
148 $this->tpl->setCurrentBlock(
"item_title");
149 $this->tpl->setVariable(
"TXT_TITLE", $this->
getTitle());
150 $this->tpl->parseCurrentBlock();
155 $this->tpl->setCurrentBlock(
"item_title_linked");
156 $this->tpl->setVariable(
"TXT_TITLE_LINKED", $this->
getTitle());
159 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"objective_details", $this->obj_id);
160 $link = $ilCtrl->getLinkTargetByClass(
"ilrepositorygui",
"");
161 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id",
$_GET[
"ref_id"]);
163 $this->tpl->setVariable(
"HREF_TITLE_LINKED", $link);
164 $this->tpl->parseCurrentBlock();
180 $lng->loadLanguageModule(
'trac');
182 $this->tpl->setCurrentBlock(
'item_progress');
187 $this->tpl->setVariable(
'TXT_PROGRESS_INFO',$this->lng->txt(
'crs_objective_status'));
189 $this->tpl->setVariable(
'PROGRESS_ALT_IMG',$this->lng->txt(
'trac_no_attempted'));
194 $this->tpl->setVariable(
'TXT_PROGRESS_INFO',$this->lng->txt(
'crs_objective_pretest'));
198 $this->tpl->setVariable(
'PROGRESS_ALT_IMG',$this->lng->txt(
'trac_failed'));
203 $this->tpl->setVariable(
'PROGRESS_ALT_IMG',$this->lng->txt(
'trac_passed'));
209 $this->tpl->setVariable(
'TXT_PROGRESS_INFO',$this->lng->txt(
'crs_objective_result'));
213 $this->tpl->setVariable(
'PROGRESS_ALT_IMG',$this->lng->txt(
'trac_failed'));
218 $this->tpl->setVariable(
'PROGRESS_ALT_IMG',$this->lng->txt(
'trac_passed'));
224 $this->tpl->parseCurrentBlock();
insertIconsAndCheckboxes()
Insert icons and checkboxes.
getContainerObject()
get container object
const IL_OBJECTIVE_STATUS_FINISHED
getObjectiveListItemHTML($a_ref_id, $a_obj_id, $a_title, $a_description, $a_manage=false)
get list item html
getProperties()
get properties
const IL_OBJECTIVE_STATUS_PRETEST_NON_SUGGEST
insertPositionField()
Insert field for positioning.
static isSuggested($a_usr_id, $a_crs_id, $a_objective_id)
check if objective is suggested
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
insertSubItems()
Insert subitems.
special template class to simplify handling of ITX/PEAR
static getStatus($a_usr_id, $a_crs_id)
get status of user
const IL_OBJECTIVE_STATUS_NONE
insertTitle()
insert title
const IL_OBJECTIVE_STATUS_FINAL
Create styles array
The data for the language used.
getTitle()
getTitle overwritten in class.ilObjLinkResourceList.php
const IL_OBJECTIVE_STATUS_PRETEST
Create new PHPExcel object
obj_idprivate
insertProgressInfo()
insert objective status
List gui for course objectives.
initItem($a_ref_id, $a_obj_id, $a_title="", $a_description="")
inititialize new item (is called by getItemHTML())
insertDescription()
insert item description
__construct()
Constructor.