19 declare(strict_types=0);
30 public function init(): void
32 $this->static_link_enabled =
true;
33 $this->delete_enabled =
false;
34 $this->cut_enabled =
false;
35 $this->subscribe_enabled =
false;
36 $this->link_enabled =
false;
37 $this->info_screen_enabled =
false;
38 $this->progress_enabled =
true;
43 $this->commands = array();
50 string $a_description,
51 bool $a_manage =
false 54 "tpl.container_list_item.html",
57 "components/ILIAS/Container" 68 $this->ref_id = $a_ref_id;
69 $this->obj_id = $a_obj_id;
86 $this->cust_prop = array();
87 $this->cust_commands = array();
88 $this->sub_item_html = array();
89 $this->position_enabled =
false;
91 return $this->tpl->get();
101 $this->
user->getId(),
104 $this->
user->getId(),
109 $this->tpl->setVariable(
'DIV_CLASS',
'ilContainerListItemOuterHighlight');
111 $this->tpl->setVariable(
'DIV_CLASS',
'ilContainerListItemOuter');
115 $this->tpl->setCurrentBlock(
"item_title");
116 $this->tpl->setVariable(
"TXT_TITLE", $this->
getTitle());
117 $this->tpl->parseCurrentBlock();
120 $this->tpl->setCurrentBlock(
"item_title_linked");
121 $this->tpl->setVariable(
"TXT_TITLE_LINKED", $this->
getTitle());
123 $this->
ctrl->setParameterByClass(
"ilrepositorygui",
"ref_id", $this->
getContainerObject()->getObject()->getRefId());
124 $this->
ctrl->setParameterByClass(
"ilrepositorygui",
"objective_details", $this->obj_id);
125 $link = $this->
ctrl->getLinkTargetByClass(
"ilrepositorygui",
"");
126 $this->
ctrl->setParameterByClass(
"ilrepositorygui",
"ref_id", $this->ref_id);
128 $this->tpl->setVariable(
"HREF_TITLE_LINKED", $link);
129 $this->tpl->parseCurrentBlock();
137 $this->
lng->loadLanguageModule(
'trac');
138 $this->tpl->setCurrentBlock(
'item_progress');
143 $this->
user->getId(),
147 $this->tpl->setVariable(
'TXT_PROGRESS_INFO', $this->
lng->txt(
'crs_objective_status'));
148 $this->tpl->setVariable(
156 $this->tpl->setVariable(
'TXT_PROGRESS_INFO', $this->
lng->txt(
'crs_objective_pretest'));
158 $this->
user->getId(),
162 $this->tpl->setVariable(
167 $this->tpl->setVariable(
176 $this->tpl->setVariable(
'TXT_PROGRESS_INFO', $this->
lng->txt(
'crs_objective_result'));
178 $this->
user->getId(),
182 $this->tpl->setVariable(
187 $this->tpl->setVariable(
194 $this->tpl->parseCurrentBlock();
const LP_STATUS_COMPLETED_NUM
insertIconsAndCheckboxes()
static isSuggested(int $a_usr_id, int $a_crs_id, int $a_objective_id)
setDescription(string $description)
static getInstance(int $variant=ilLPStatusIcons::ICON_VARIANT_DEFAULT, ?\ILIAS\UI\Renderer $renderer=null, ?\ILIAS\UI\Factory $factory=null)
const IL_OBJECTIVE_STATUS_FINISHED
const IL_OBJECTIVE_STATUS_FINAL
const IL_OBJECTIVE_STATUS_PRETEST
getObjectiveListItemHTML(int $a_ref_id, int $a_obj_id, string $a_title, string $a_description, bool $a_manage=false)
const IL_OBJECTIVE_STATUS_PRETEST_NON_SUGGEST
static getStatus(int $a_usr_id, int $a_crs_id)
getTitle()
getTitle overwritten in class.ilObjLinkResourceList.php
const LP_STATUS_NOT_ATTEMPTED_NUM
List gui for course objectives.
const IL_OBJECTIVE_STATUS_NONE
const LP_STATUS_FAILED_NUM