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();
96 "tpl.container_list_item.html",
101 $this->
initItem($a_ref_id, $a_obj_id, $a_title, $a_description);
118 $this->cust_prop =
array();
119 $this->cust_commands =
array();
120 $this->sub_item_html =
array();
121 $this->position_enabled =
false;
123 return $this->tpl->get();
141 $this->tpl->setVariable(
'DIV_CLASS',
'ilContainerListItemOuterHighlight');
143 $this->tpl->setVariable(
'DIV_CLASS',
'ilContainerListItemOuter');
147 $this->tpl->setCurrentBlock(
"item_title");
148 $this->tpl->setVariable(
"TXT_TITLE", $this->
getTitle());
149 $this->tpl->parseCurrentBlock();
154 $this->tpl->setCurrentBlock(
"item_title_linked");
155 $this->tpl->setVariable(
"TXT_TITLE_LINKED", $this->
getTitle());
158 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"objective_details", $this->obj_id);
159 $link = $ilCtrl->getLinkTargetByClass(
"ilrepositorygui",
"");
160 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id",
$_GET[
"ref_id"]);
162 $this->tpl->setVariable(
"HREF_TITLE_LINKED", $link);
163 $this->tpl->parseCurrentBlock();
179 $lng->loadLanguageModule(
'trac');
181 $this->tpl->setCurrentBlock(
'item_progress');
185 $this->tpl->setVariable(
'TXT_PROGRESS_INFO', $this->lng->txt(
'crs_objective_status'));
187 $this->tpl->setVariable(
'PROGRESS_ALT_IMG', $this->lng->txt(
'trac_no_attempted'));
192 $this->tpl->setVariable(
'TXT_PROGRESS_INFO', $this->lng->txt(
'crs_objective_pretest'));
195 $this->tpl->setVariable(
'PROGRESS_ALT_IMG', $this->lng->txt(
'trac_failed'));
198 $this->tpl->setVariable(
'PROGRESS_ALT_IMG', $this->lng->txt(
'trac_passed'));
204 $this->tpl->setVariable(
'TXT_PROGRESS_INFO', $this->lng->txt(
'crs_objective_result'));
207 $this->tpl->setVariable(
'PROGRESS_ALT_IMG', $this->lng->txt(
'trac_failed'));
210 $this->tpl->setVariable(
'PROGRESS_ALT_IMG', $this->lng->txt(
'trac_passed'));
216 $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.