18 declare(strict_types=1);
46 $this->main_tpl = $DIC->ui()->mainTemplate();
47 $this->
access = ilMyStaffAccess::getInstance();
48 $this->
help = $DIC->help();
49 $this->queryWrapper = $DIC->http()->wrapper()->query();
50 $this->
help->setScreenIdComponent(
'msta');
55 if ($this->
access->hasCurrentUserAccessToCourseMemberships()) {
58 $this->main_tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
"permission_denied"),
true);
59 $this->
ctrl->redirectByClass(ilDashboardGUI::class,
"");
65 $cmd = $this->
ctrl->getCmd();
66 $next_class = $this->
ctrl->getNextClass();
68 switch ($next_class) {
69 case strtolower(\ilMStListCoursesTableGUI::class):
72 $this->
ctrl->setReturn($this, self::CMD_INDEX);
73 $this->table = new \ilMStListCoursesTableGUI($this, self::CMD_INDEX);
74 $this->
ctrl->forwardCommand($this->table);
79 case self::CMD_RESET_FILTER:
80 case self::CMD_APPLY_FILTER:
82 case self::CMD_GET_ACTIONS:
93 final public function index(): void
103 $this->
help->setScreenId(
'courses_list');
106 $DIC->ui()->mainTemplate()->setTitle($DIC->language()->txt(
'mst_list_courses'));
108 $DIC->ui()->mainTemplate()->setContent($this->table->getHTML());
114 $this->table->writeFilterToSession();
115 $this->table->resetOffset();
122 $this->table->resetOffset();
123 $this->table->resetFilter();
127 final public function getId(): string
131 return $this->table->getId();
137 $DIC->ctrl()->redirect($this);
ILIAS HTTP Wrapper ArrayBasedRequestWrapper $queryWrapper
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
Class ilMStListCoursesTableGUI.
ilGlobalTemplateInterface $main_tpl
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)