43 if ($this->access->hasCurrentUserAccessToMyStaff()) {
47 $DIC->ctrl()->redirectByClass(ilPersonalDesktopGUI::class,
"");
59 $cmd = $DIC->ctrl()->getCmd();
60 $next_class = $DIC->ctrl()->getNextClass();
62 switch ($next_class) {
63 case strtolower(ilFormPropertyDispatchGUI::class):
66 $DIC->ctrl()->setReturn($this, self::CMD_INDEX);
68 $this->table->executeCommand();
73 case self::CMD_RESET_FILTER:
74 case self::CMD_APPLY_FILTER:
76 case self::CMD_GET_ACTIONS:
107 $this->table->setTitle($DIC->language()->txt(
'mst_list_courses'));
108 $DIC->ui()->mainTemplate()->setContent($this->table->getHTML());
118 $this->table->writeFilterToSession();
119 $this->table->resetOffset();
130 $this->table->resetOffset();
131 $this->table->resetFilter();
143 return $this->table->getId();
154 $DIC->ctrl()->redirect($this);
165 $mst_co_usr_id = $DIC->http()->request()->getQueryParams()[
'mst_lco_usr_id'];
166 $mst_lco_crs_ref_id = $DIC->http()->request()->getQueryParams()[
'mst_lco_crs_ref_id'];
168 if ($mst_co_usr_id > 0 && $mst_lco_crs_ref_id > 0) {
171 if ($DIC->access()->checkAccess(
"visible",
"", $mst_lco_crs_ref_id)) {
178 'user_id' => $mst_co_usr_id,
179 'object_reference.deleted' => null
180 ), array(
'user_id' =>
'=',
'object_reference.deleted' =>
'!=' ))->
get() as $org_unit_assignment) {
181 if ($DIC->access()->checkAccess(
"read",
"", $org_unit_assignment->getOrguId())) {
183 $selection->addItem($org_units[$org_unit_assignment->getOrguId()],
'', $link);
187 $selection = ilMyStaffGUI::extendActionMenuWithUserActions($selection, $mst_co_usr_id, rawurlencode($DIC->ctrl()
188 ->getLinkTarget($this, self::CMD_INDEX)));
190 echo $selection->getHTML(
true);
static _lookupTitle($a_id)
static innerjoin($tablename, $on_this, $on_external, $fields=array(' *'), $operator='=', $both_external=false)
static _getStaticLink( $a_ref_id, $a_type='', $a_fallback_goto=true, $append="")
Get static link.
static _lookupObjectId($a_ref_id)
Class ilMStListCoursesTableGUI.
static getTextRepresentationOfOrgUnits($sort_by_title=true)
Get ref id path array.
Class ilMStListCoursesGUI.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
User interface class for advanced drop-down selection lists.