19 declare(strict_types=1);
46 $this->main_tpl = $DIC->ui()->mainTemplate();
47 $this->
access = ilMyStaffAccess::getInstance();
48 $this->
help = $DIC->help();
49 $this->
help->setScreenIdComponent(
'msta');
54 if ($this->
access->hasCurrentUserAccessToCourseMemberships()) {
57 $this->main_tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
"permission_denied"),
true);
58 $this->
ctrl->redirectByClass(ilDashboardGUI::class,
"");
64 $cmd = $this->
ctrl->getCmd();
65 $next_class = $this->
ctrl->getNextClass();
67 switch ($next_class) {
68 case strtolower(\ilMStListCoursesTableGUI::class):
71 $this->
ctrl->setReturn($this, self::CMD_INDEX);
72 $this->table = new \ilMStListCoursesTableGUI($this, self::CMD_INDEX);
73 $this->
ctrl->forwardCommand($this->table);
77 case self::CMD_RESET_FILTER:
78 case self::CMD_APPLY_FILTER:
80 case self::CMD_GET_ACTIONS:
91 final public function index(): void
101 $this->
help->setScreenId(
'courses_list');
104 $DIC->ui()->mainTemplate()->setTitle($DIC->language()->txt(
'mst_list_courses'));
106 $DIC->ui()->mainTemplate()->setContent($this->table->getHTML());
112 $this->table->writeFilterToSession();
113 $this->table->resetOffset();
120 $this->table->resetOffset();
121 $this->table->resetFilter();
125 final public function getId(): string
129 return $this->table->getId();
135 $DIC->ctrl()->redirect($this);
const string CMD_GET_ACTIONS
Class ilMStListCoursesTableGUI.
ilGlobalTemplateInterface $main_tpl
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
const string CMD_APPLY_FILTER
__construct(Container $dic, ilPlugin $plugin)
const string CMD_RESET_FILTER