5 require_once(
"Services/Block/classes/class.ilBlockGUI.php");
6 require_once(
'./Modules/StudyProgramme/classes/class.ilObjStudyProgrammeAdmin.php');
7 require_once
'Services/PersonalDesktop/classes/class.ilPDSelectedItemsBlockGUI.php';
58 $ilAccess = $DIC[
'ilAccess'];
62 $this->il_access = $ilAccess;
82 $this->
setTitle($this->il_lng->txt(
"objs_prg"));
96 return parent::getHTML();
101 foreach ($this->users_assignments as $assignment) {
108 $list_item->setShowInfoMessage($this->show_info_message);
109 $list_item->setVisibleOnPDMode($this->visible_on_pd_mode);
110 $content .= $list_item->getHTML();
113 $this->il_logger->alert(
"$e");
116 $this->il_logger->alert(
"$e");
123 return self::BLOCK_TYPE;
137 if (count($this->users_assignments) == 0) {
140 foreach ($this->users_assignments as $assignment) {
149 if (count($this->users_assignments) == 0) {
152 foreach ($this->users_assignments as $assignment) {
166 return $this->il_access->checkAccess($permission,
"", $prg->getRefId(),
"prg", $prg->getId());
187 $ctrl = $DIC->ctrl();
188 return (
$_GET[
"cmd"] ==
"jumpToSelectedItems" ||
189 ($ctrl->getCmdClass() ==
"ilpersonaldesktopgui" && $ctrl->getCmd() ==
"show")
190 ) && !
$_GET[
"expand"];
194 require_once(
"Modules/StudyProgramme/classes/class.ilStudyProgrammeUserAssignment.php");
199 require_once(
"Modules/StudyProgramme/classes/class.ilStudyProgrammeProgressListGUI.php");
202 $progress_gui->setOnlyRelevant(
true);
203 return $progress_gui;
static isRepositoryObject()
const SETTING_VISIBLE_ON_PD_ALLWAYS
userHasReadableStudyProgrammes()
isReadable(ilStudyProgrammeUserAssignment $assignment)
userHasVisibleStudyProgrammes()
const VIEW_MY_STUDYPROGRAMME
getStudyProgramme()
Get the program node where this assignment was made.
Exception is thrown when a progress for some programme node and assignment is missing.
isVisible(ilStudyProgrammeUserAssignment $assignment)
setTitle($a_title)
Set Title.
Personal Desktop-Presentation for the Study Programme.
getId()
Get the id of the assignment.
const SETTING_VISIBLE_ON_PD
hasPermission(ilStudyProgrammeUserAssignment $assignment, $permission)
Class ilStudyProgrammeProgressListGUI.
static getInstancesOfUser($a_user_id)
Get all instances for a given user.
This class represents a block method of a block.
static getLogger($a_component_id)
Get component logger.
new_ilStudyProgrammeAssignmentListGUI(ilStudyProgrammeUserAssignment $a_assignment)
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.