42 $this->main_tpl = $DIC->ui()->mainTemplate();
44 $this->
access = ilMyStaffAccess::getInstance();
46 $this->usr_id = $DIC->http()->request()->getQueryParams()[
'usr_id'];
47 $DIC->ctrl()->setParameter($this,
'usr_id', $this->usr_id);
55 $this->main_tpl->setOnScreenMessage(
'failure', $DIC->language()->txt(
"permission_denied"),
true);
56 $DIC->ctrl()->redirectByClass(ilDashboardGUI::class,
"");
59 if ($this->
access->hasCurrentUserAccessToUser($this->usr_id)
60 && $this->
access->hasCurrentUserAccessToCourseMemberships()
64 $this->main_tpl->setOnScreenMessage(
'failure', $DIC->language()->txt(
"permission_denied"),
true);
65 $DIC->ctrl()->redirectByClass(ilDashboardGUI::class,
"");
75 $cmd = $DIC->ctrl()->getCmd();
76 $next_class = $DIC->ctrl()->getNextClass();
78 switch ($next_class) {
79 case strtolower(ilMStShowUserCoursesTableGUI::class):
80 $DIC->ctrl()->setReturn($this, self::CMD_INDEX);
82 $DIC->ctrl()->forwardCommand($this->table);
86 case self::CMD_RESET_FILTER:
87 case self::CMD_APPLY_FILTER:
89 case self::CMD_GET_ACTIONS:
99 protected function index(): void
109 $this->table->setTitle(
113 $DIC->ui()->mainTemplate()->setContent($this->table->getHTML());
119 $this->table->writeFilterToSession();
120 $this->table->resetOffset();
127 $this->table->resetOffset();
128 $this->table->resetFilter();
132 final public function getId(): string
136 return $this->table->getId();
142 $DIC->ctrl()->redirect($this);
ilGlobalTemplateInterface $main_tpl
static _lookupTitle(int $obj_id)
Class ilMStShowUserCoursesTableGUI.