5require_once(
"Services/Block/classes/class.ilBlockGUI.php");
6require_once(
'./Modules/StudyProgramme/classes/class.ilObjStudyProgrammeAdmin.php');
7require_once
'Services/PersonalDesktop/ItemsBlock/classes/class.ilPDSelectedItemsBlockGUI.php';
59 parent::__construct();
63 $ilAccess =
$DIC[
'ilAccess'];
67 $this->il_access = $ilAccess;
87 $this->
setTitle($this->il_lng->txt(
"objs_prg"));
102 return parent::getHTML();
108 foreach ($this->users_assignments as $assignment) {
115 $list_item->setShowInfoMessage($this->show_info_message);
116 $list_item->setVisibleOnPDMode($this->visible_on_pd_mode);
117 $content .= $list_item->getHTML();
119 $this->il_logger->alert(
"$e");
121 $this->il_logger->alert(
"$e");
146 if (count($this->users_assignments) == 0) {
149 foreach ($this->users_assignments as $assignment) {
159 if (count($this->users_assignments) == 0) {
162 foreach ($this->users_assignments as $assignment) {
178 return $this->il_access->checkAccess($permission,
"", $prg->getRefId(),
"prg", $prg->getId());
183 require_once
'Services/PersonalDesktop/ItemsBlock/classes/class.ilPDSelectedItemsBlockViewSettings.php';
185 $this->show_info_message = $viewSettings->isStudyProgrammeViewActive();
206 return (
$_GET[
"cmd"] ==
"jumpToSelectedItems" ||
207 (
$ctrl->getCmdClass() ==
"ilpersonaldesktopgui" &&
$ctrl->getCmd() ==
"show")
208 ) && !
$_GET[
"expand"];
213 require_once(
"Modules/StudyProgramme/classes/class.ilStudyProgrammeUserAssignment.php");
219 require_once(
"Modules/StudyProgramme/classes/class.ilStudyProgrammeProgressListGUI.php");
222 $progress_gui->setOnlyRelevant(
true);
223 return $progress_gui;
An exception for terminatinating execution or to throw for unit testing.
This class represents a block method of a block.
setTitle($a_title)
Set Title.
static getLogger($a_component_id)
Get component logger.
const SETTING_VISIBLE_ON_PD_ALLWAYS
const SETTING_VISIBLE_ON_PD
Class ilPDSelectedItemsBlockViewSettings.
Personal Desktop-Presentation for the Study Programme.
hasPermission(ilStudyProgrammeUserAssignment $assignment, $permission)
fillDataSection()
Standard implementation for row based data.
isReadable(ilStudyProgrammeUserAssignment $assignment)
__construct()
Constructor.
userHasVisibleStudyProgrammes()
isVisible(ilStudyProgrammeUserAssignment $assignment)
getHTML()
Handle config status.
new_ilStudyProgrammeAssignmentListGUI(ilStudyProgrammeUserAssignment $a_assignment)
static isRepositoryObject()
userHasReadableStudyProgrammes()
Exception is thrown when a progress for some programme node and assignment is missing.
Class ilStudyProgrammeProgressListGUI.
Exception is thrown when invariants on the program tree would be violated by manipulation of tree.
Represents one assignment of a user to a study programme.
getStudyProgramme()
Get the program node where this assignment was made.
getId()
Get the id of the assignment.
static getInstancesOfUser($a_user_id)
Get all instances for a given user.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.