5require_once(
"Services/Block/classes/class.ilBlockGUI.php");
6require_once(
'./Modules/StudyProgramme/classes/class.ilObjStudyProgrammeAdmin.php');
62 $ilAccess =
$DIC[
'ilAccess'];
66 $this->il_access = $ilAccess;
88 $this->
setTitle($this->il_lng->txt(
"objs_prg"));
103 return parent::getHTML();
109 foreach ($this->users_assignments as $assignment) {
116 $list_item->setShowInfoMessage($this->show_info_message);
117 $list_item->setVisibleOnPDMode($this->visible_on_pd_mode);
118 $content .= $list_item->getHTML();
120 $this->il_logger->alert(
"$e");
122 $this->il_logger->alert(
"$e");
153 if (count($this->users_assignments) == 0) {
156 foreach ($this->users_assignments as $assignment) {
166 if (count($this->users_assignments) == 0) {
169 foreach ($this->users_assignments as $assignment) {
185 return $this->il_access->checkAccess($permission,
"", $prg->getRefId(),
"prg", $prg->getId());
191 $this->show_info_message = $viewSettings->isStudyProgrammeViewActive();
212 return (
$_GET[
"cmd"] ==
"jumpToSelectedItems" ||
213 (
$ctrl->getCmdClass() ==
"ildashboardgui" &&
$ctrl->getCmd() ==
"show")
214 ) && !
$_GET[
"expand"];
219 $this->users_assignments = $this->sp_user_assignment_db->getInstancesOfUser($this->il_user->getId());
226 $progress_gui->setOnlyRelevant(
true);
227 return $progress_gui;
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
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)
isRepositoryObject()
Returns whether block has a corresponding repository object.bool
__construct()
Constructor.
userHasVisibleStudyProgrammes()
isVisible(ilStudyProgrammeUserAssignment $assignment)
new_ilStudyProgrammeAssignmentListGUI(ilStudyProgrammeUserAssignment $a_assignment)
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.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc