ILIAS  release_8 Revision v8.24
ilMStListCertificatesGUI Class Reference

Class ilMStListCertificatesGUI. More...

+ Collaboration diagram for ilMStListCertificatesGUI:

Public Member Functions

 __construct ()
 
 executeCommand ()
 
 index ()
 
 listUsers ()
 
 applyFilter ()
 
 resetFilter ()
 
 getId ()
 
 cancel ()
 

Data Fields

const CMD_APPLY_FILTER = 'applyFilter'
 
const CMD_INDEX = 'index'
 
const CMD_GET_ACTIONS = "getActions"
 
const CMD_RESET_FILTER = 'resetFilter'
 

Protected Member Functions

 checkAccessOrFail ()
 

Protected Attributes

ilTable2GUI $table
 
ilMyStaffAccess $access
 

Private Attributes

ilGlobalTemplateInterface $main_tpl
 
ilCtrlInterface $ctrl
 
ilLanguage $language
 
WrapperFactory $httpWrapper
 
ILIAS Refinery Factory $refinery
 
ilAccessHandler $accessHandler
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilMStListCertificatesGUI::__construct ( )

Definition at line 45 of file class.ilMStListCertificatesGUI.php.

46 {
47 global $DIC;
48 $this->main_tpl = $DIC->ui()->mainTemplate();
49 $this->ctrl = $DIC->ctrl();
50 $this->language = $DIC->language();
51 $this->httpWrapper = $DIC->http()->wrapper();
52 $this->refinery = $DIC->refinery();
53 $this->access = ilMyStaffAccess::getInstance();
54 $this->accessHandler = $DIC->access();
55 }
global $DIC
Definition: feed.php:28

References $DIC, ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ILIAS\UI\examples\Symbol\Glyph\Language\language(), and ILIAS\Repository\refinery().

+ Here is the call graph for this function:

Member Function Documentation

◆ applyFilter()

ilMStListCertificatesGUI::applyFilter ( )
final

Definition at line 115 of file class.ilMStListCertificatesGUI.php.

115 : void
116 {
117 $this->table = new ilMStListCertificatesTableGUI($this, self::CMD_APPLY_FILTER);
118 $this->table->writeFilterToSession();
119 $this->table->resetOffset();
120 $this->index();
121 }

References index().

+ Here is the call graph for this function:

◆ cancel()

ilMStListCertificatesGUI::cancel ( )
final

Definition at line 138 of file class.ilMStListCertificatesGUI.php.

138 : void
139 {
140 $this->ctrl->redirect($this);
141 }

References ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

◆ checkAccessOrFail()

ilMStListCertificatesGUI::checkAccessOrFail ( )
protected

Definition at line 57 of file class.ilMStListCertificatesGUI.php.

57 : void
58 {
59 if ($this->access->hasCurrentUserAccessToCertificates()) {
60 return;
61 } else {
62 $this->main_tpl->setOnScreenMessage('failure', $this->language->txt("permission_denied"), true);
63 $this->ctrl->redirectByClass(ilDashboardGUI::class, "");
64 }
65 }

References ILIAS\Repository\access(), ILIAS\Repository\ctrl(), and ILIAS\UI\examples\Symbol\Glyph\Language\language().

Referenced by executeCommand(), and listUsers().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ executeCommand()

ilMStListCertificatesGUI::executeCommand ( )
final

Definition at line 67 of file class.ilMStListCertificatesGUI.php.

67 : void
68 {
69 $cmd = $this->ctrl->getCmd();
70 $next_class = $this->ctrl->getNextClass();
71
72 switch ($next_class) {
73 case strtolower(ilFormPropertyDispatchGUI::class):
74 $this->checkAccessOrFail();
75
76 $this->ctrl->setReturn($this, self::CMD_INDEX);
77 $this->table = new ilMStListCertificatesTableGUI($this, self::CMD_INDEX);
78 $this->table->executeCommand();
79 break;
80 case strtolower(ilUserCertificateApiGUI::class):
81 $this->checkAccessOrFail();
82 $this->ctrl->forwardCommand(new ilUserCertificateApiGUI());
83 break;
84 default:
85 switch ($cmd) {
88 case self::CMD_INDEX:
90 $this->$cmd();
91 break;
92 default:
93 $this->index();
94 break;
95 }
96 break;
97 }
98 }

References checkAccessOrFail(), CMD_APPLY_FILTER, CMD_GET_ACTIONS, CMD_INDEX, CMD_RESET_FILTER, ILIAS\Repository\ctrl(), and index().

+ Here is the call graph for this function:

◆ getId()

ilMStListCertificatesGUI::getId ( )
final

Definition at line 131 of file class.ilMStListCertificatesGUI.php.

131 : string
132 {
133 $this->table = new ilMStListCertificatesTableGUI($this, self::CMD_INDEX);
134
135 return $this->table->getId();
136 }

◆ index()

ilMStListCertificatesGUI::index ( )
final

Definition at line 100 of file class.ilMStListCertificatesGUI.php.

100 : void
101 {
102 $this->listUsers();
103 }

References listUsers().

Referenced by applyFilter(), executeCommand(), and resetFilter().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ listUsers()

ilMStListCertificatesGUI::listUsers ( )
final

Definition at line 105 of file class.ilMStListCertificatesGUI.php.

105 : void
106 {
107 $this->checkAccessOrFail();
108
109 $this->table = new ilMStListCertificatesTableGUI($this, self::CMD_INDEX);
110 $this->main_tpl->setTitle($this->language->txt('mst_list_certificates'));
111 $this->main_tpl->setTitleIcon(ilUtil::getImagePath('icon_cert.svg'));
112 $this->main_tpl->setContent($this->table->getHTML());
113 }
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)

References checkAccessOrFail(), ilUtil\getImagePath(), and ILIAS\UI\examples\Symbol\Glyph\Language\language().

Referenced by index().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ resetFilter()

ilMStListCertificatesGUI::resetFilter ( )
final

Definition at line 123 of file class.ilMStListCertificatesGUI.php.

123 : void
124 {
125 $this->table = new ilMStListCertificatesTableGUI($this, self::CMD_RESET_FILTER);
126 $this->table->resetOffset();
127 $this->table->resetFilter();
128 $this->index();
129 }

References index().

+ Here is the call graph for this function:

Field Documentation

◆ $access

ilMyStaffAccess ilMStListCertificatesGUI::$access
protected

Definition at line 37 of file class.ilMStListCertificatesGUI.php.

◆ $accessHandler

ilAccessHandler ilMStListCertificatesGUI::$accessHandler
private

Definition at line 43 of file class.ilMStListCertificatesGUI.php.

◆ $ctrl

ilCtrlInterface ilMStListCertificatesGUI::$ctrl
private

Definition at line 39 of file class.ilMStListCertificatesGUI.php.

◆ $httpWrapper

WrapperFactory ilMStListCertificatesGUI::$httpWrapper
private

Definition at line 41 of file class.ilMStListCertificatesGUI.php.

◆ $language

ilLanguage ilMStListCertificatesGUI::$language
private

Definition at line 40 of file class.ilMStListCertificatesGUI.php.

◆ $main_tpl

ilGlobalTemplateInterface ilMStListCertificatesGUI::$main_tpl
private

Definition at line 38 of file class.ilMStListCertificatesGUI.php.

◆ $refinery

ILIAS Refinery Factory ilMStListCertificatesGUI::$refinery
private

Definition at line 42 of file class.ilMStListCertificatesGUI.php.

◆ $table

ilTable2GUI ilMStListCertificatesGUI::$table
protected

Definition at line 36 of file class.ilMStListCertificatesGUI.php.

◆ CMD_APPLY_FILTER

const ilMStListCertificatesGUI::CMD_APPLY_FILTER = 'applyFilter'

Definition at line 32 of file class.ilMStListCertificatesGUI.php.

Referenced by executeCommand().

◆ CMD_GET_ACTIONS

const ilMStListCertificatesGUI::CMD_GET_ACTIONS = "getActions"

Definition at line 34 of file class.ilMStListCertificatesGUI.php.

Referenced by executeCommand().

◆ CMD_INDEX

const ilMStListCertificatesGUI::CMD_INDEX = 'index'

◆ CMD_RESET_FILTER

const ilMStListCertificatesGUI::CMD_RESET_FILTER = 'resetFilter'

Definition at line 35 of file class.ilMStListCertificatesGUI.php.

Referenced by executeCommand().


The documentation for this class was generated from the following file: