3 declare(strict_types=1);
57 $this->setting = $DIC[
'ilSetting'];
60 $this->request_wrapper = $DIC->http()->wrapper()->query();
74 $this->request_wrapper->retrieve(
"view", $this->
refinery->kindlyTo()->int())
76 $this->show_info_message = $viewSettings->isStudyProgrammeViewActive();
98 return parent::getHTML();
104 foreach ($this->users_assignments as $assignment) {
111 $list_item->setShowInfoMessage($this->show_info_message);
112 $list_item->setVisibleOnPDMode($this->visible_on_pd_mode);
113 $content .= $list_item->getHTML();
115 $this->
logger->alert((
string) $e);
117 $this->
logger->alert((
string) $e);
128 return self::BLOCK_TYPE;
147 if (count($this->users_assignments) === 0) {
150 foreach ($this->users_assignments as $assignment) {
160 if (count($this->users_assignments) === 0) {
163 foreach ($this->users_assignments as $assignment) {
176 protected function hasPermission(ilStudyProgrammeAssignment $assignment,
string $permission): bool
179 return $this->
access->checkAccess($permission,
"", $prg->getRefId(),
"prg", $prg->getId());
182 protected function isVisible(ilStudyProgrammeAssignment $assignment): bool
187 protected function isReadable(ilStudyProgrammeAssignment $assignment): bool
198 $cmd = $this->request_wrapper->retrieve(
"cmd", $this->
refinery->kindlyTo()->string());
199 $expand = $this->request_wrapper->retrieve(
"expand", $this->
refinery->kindlyTo()->bool());
200 $jump_to_selected_list = $cmd ===
"jumpToSelectedItems";
201 $is_ilDashboardGUI = $this->
ctrl->getCmdClass() ===
"ildashboardgui";
202 $is_cmd_show = $this->
ctrl->getCmd() ===
"show";
204 return ($jump_to_selected_list || ($is_ilDashboardGUI && $is_cmd_show)) && !$expand;
209 $this->users_assignments = $this->sp_user_assignment_db->getInstancesOfUser($this->
user->getId());
213 ilStudyProgrammeAssignment $assignment
215 $progress = $assignment->getProgressTree();
217 $progress_gui->setOnlyRelevant(
true);
218 return $progress_gui;
ilStudyProgrammeAssignmentDBRepository $sp_user_assignment_db
const SETTING_VISIBLE_ON_PD_ALLWAYS
new_ilStudyProgrammeAssignmentListGUI(ilStudyProgrammeAssignment $assignment)
userHasReadableStudyProgrammes()
static getLogger(string $a_component_id)
Get component logger.
hasPermission(ilStudyProgrammeAssignment $assignment, string $permission)
userHasVisibleStudyProgrammes()
isVisible(ilStudyProgrammeAssignment $assignment)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Interface RequestWrapper.
Personal Desktop-Presentation for the Study Programme.
const SETTING_VISIBLE_ON_PD
RequestWrapper $request_wrapper
isReadable(ilStudyProgrammeAssignment $assignment)
static getInstanceByObjId(int $obj_id)
__construct(Container $dic, ilPlugin $plugin)
setTitle(string $a_title)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This class represents a block method of a block.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
string $visible_on_pd_mode