3 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",
74 $this->cust_prop = array();
75 $this->cust_commands = array();
76 $this->sub_item_html = array();
77 $this->position_enabled =
false;
79 return $this->tpl->get();
97 $this->tpl->setVariable(
'DIV_CLASS',
'ilContainerListItemOuterHighlight');
99 $this->tpl->setVariable(
'DIV_CLASS',
'ilContainerListItemOuter');
103 $this->tpl->setCurrentBlock(
"item_title");
104 $this->tpl->setVariable(
"TXT_TITLE", $this->
getTitle());
105 $this->tpl->parseCurrentBlock();
108 $this->tpl->setCurrentBlock(
"item_title_linked");
109 $this->tpl->setVariable(
"TXT_TITLE_LINKED", $this->
getTitle());
111 $this->
ctrl->setParameterByClass(
"ilrepositorygui",
"ref_id", $this->
getContainerObject()->getObject()->getRefId());
112 $this->
ctrl->setParameterByClass(
"ilrepositorygui",
"objective_details", $this->obj_id);
113 $link = $this->
ctrl->getLinkTargetByClass(
"ilrepositorygui",
"");
114 $this->
ctrl->setParameterByClass(
"ilrepositorygui",
"ref_id", $this->ref_id);
116 $this->tpl->setVariable(
"HREF_TITLE_LINKED", $link);
117 $this->tpl->parseCurrentBlock();
125 $this->
lng->loadLanguageModule(
'trac');
126 $this->tpl->setCurrentBlock(
'item_progress');
131 $this->
user->getId(),
135 $this->tpl->setVariable(
'TXT_PROGRESS_INFO', $this->
lng->txt(
'crs_objective_status'));
136 $this->tpl->setVariable(
144 $this->tpl->setVariable(
'TXT_PROGRESS_INFO', $this->
lng->txt(
'crs_objective_pretest'));
146 $this->
user->getId(),
150 $this->tpl->setVariable(
155 $this->tpl->setVariable(
164 $this->tpl->setVariable(
'TXT_PROGRESS_INFO', $this->
lng->txt(
'crs_objective_result'));
166 $this->
user->getId(),
170 $this->tpl->setVariable(
175 $this->tpl->setVariable(
183 $this->tpl->parseCurrentBlock();
const LP_STATUS_COMPLETED_NUM
insertIconsAndCheckboxes()
static isSuggested(int $a_usr_id, int $a_crs_id, int $a_objective_id)
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
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
const IL_OBJECTIVE_STATUS_NONE
static _lookupType(int $id, bool $reference=false)
initItem(int $ref_id, int $obj_id, string $type, string $title="", string $description="")
initialize new item (is called by getItemHTML())
const LP_STATUS_FAILED_NUM