45 $this->main_tpl = $DIC->ui()->mainTemplate();
46 $this->
ctrl = $DIC->ctrl();
48 $this->
access = ilMyStaffAccess::getInstance();
53 if ($this->
access->hasCurrentUserAccessToCertificates()) {
56 $this->main_tpl->setOnScreenMessage(
'failure', $this->
language->txt(
"permission_denied"),
true);
57 $this->
ctrl->redirectByClass(ilDashboardGUI::class,
"");
63 $cmd = $this->
ctrl->getCmd();
64 $next_class = $this->
ctrl->getNextClass();
66 switch ($next_class) {
67 case strtolower(ilFormPropertyDispatchGUI::class):
70 $this->
ctrl->setReturn($this, self::CMD_INDEX);
72 $this->table->executeCommand();
74 case strtolower(ilUserCertificateApiGUI::class):
80 case self::CMD_RESET_FILTER:
81 case self::CMD_APPLY_FILTER:
83 case self::CMD_GET_ACTIONS:
94 final public function index(): void
104 $this->main_tpl->setTitle($this->
language->txt(
'mst_list_certificates'));
106 $this->main_tpl->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();
134 $this->
ctrl->redirect($this);
const string CMD_APPLY_FILTER
ilGlobalTemplateInterface $main_tpl
Class ilMStListCertificatesTableGUI.
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_GET_ACTIONS
const string CMD_RESET_FILTER
language()
description: > Example for rendring a language glyph.