36 $this->access = ilMyStaffAccess::getInstance();
47 if ($this->access->hasCurrentUserAccessToMyStaff()) {
51 $DIC->ctrl()->redirectByClass(ilDashboardGUI::class,
"");
63 $cmd =
$DIC->ctrl()->getCmd();
64 $next_class =
$DIC->ctrl()->getNextClass();
66 switch ($next_class) {
67 case strtolower(ilFormPropertyDispatchGUI::class):
70 $DIC->ctrl()->setReturn($this, self::CMD_INDEX);
72 $this->table->executeCommand();
74 case strtolower(ilUserCertificateApiGUI::class):
115 $DIC->ui()->mainTemplate()->setTitle(
$DIC->language()->txt(
'mst_list_certificates'));
116 $DIC->ui()->mainTemplate()->setContent($this->table->getHTML());
126 $this->table->writeFilterToSession();
127 $this->table->resetOffset();
138 $this->table->resetOffset();
139 $this->table->resetFilter();
151 return $this->table->getId();
162 $DIC->ctrl()->redirect($this);
173 $mst_co_usr_id =
$DIC->http()->request()->getQueryParams()[
'mst_lco_usr_id'];
174 $mst_lco_crs_ref_id =
$DIC->http()->request()->getQueryParams()[
'mst_lco_crs_ref_id'];
176 if ($mst_co_usr_id > 0 && $mst_lco_crs_ref_id > 0) {
179 if (
$DIC->access()->checkAccess(
"visible",
"", $mst_lco_crs_ref_id)) {
186 'user_id' => $mst_co_usr_id,
187 'object_reference.deleted' =>
null
188 ), array(
'user_id' =>
'=',
'object_reference.deleted' =>
'!=' ))->
get() as $org_unit_assignment) {
189 if (
$DIC->access()->checkAccess(
"read",
"", $org_unit_assignment->getOrguId())) {
191 $selection->addItem($org_units[$org_unit_assignment->getOrguId()],
'', $link);
195 $selection = ilMyStaffGUI::extendActionMenuWithUserActions($selection, $mst_co_usr_id, rawurlencode(
$DIC->ctrl()
196 ->getLinkTarget($this, self::CMD_INDEX)));
198 echo $selection->getHTML(
true);
static innerjoin($tablename, $on_this, $on_external, $fields=array(' *'), $operator='=', $both_external=false)
An exception for terminatinating execution or to throw for unit testing.
Class ilMStListCertificatesTableGUI.
User interface class for advanced drop-down selection lists.
static _getStaticLink( $a_ref_id, $a_type='', $a_fallback_goto=true, $append="")
Get static link.
Class ilMStListCertificatesGUI.
static _lookupTitle($a_id)
lookup object title
static _lookupObjectId($a_ref_id)
lookup object id
static getTextRepresentationOfOrgUnits($sort_by_title=true)
Get ref id path array.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.