43 $this->access = ilMyStaffAccess::getInstance();
45 $this->usr_id = $DIC->http()->request()->getQueryParams()[
'usr_id'];
46 $DIC->ctrl()->setParameter($this,
'usr_id', $this->usr_id);
59 $DIC->ctrl()->redirectByClass(ilDashboardGUI::class,
"");
62 if ($this->access->hasCurrentUserAccessToMyStaff()
63 && $this->access->hasCurrentUserAccessToUser($this->usr_id)
68 $DIC->ctrl()->redirectByClass(ilDashboardGUI::class,
"");
82 $cmd = $DIC->ctrl()->getCmd();
83 $next_class = $DIC->ctrl()->getNextClass();
85 switch ($next_class) {
86 case strtolower(ilFormPropertyDispatchGUI::class):
87 $DIC->ctrl()->setReturn($this, self::CMD_INDEX);
89 $this->table->executeCommand();
93 case self::CMD_RESET_FILTER:
94 case self::CMD_APPLY_FILTER:
96 case self::CMD_GET_ACTIONS:
126 $DIC->ui()->mainTemplate()->setContent($this->table->getHTML());
135 $this->table->writeFilterToSession();
136 $this->table->resetOffset();
147 $this->table->resetOffset();
148 $this->table->resetFilter();
160 return $this->table->getId();
171 $DIC->ctrl()->redirect($this);
182 $mst_co_usr_id = $DIC->http()->request()->getQueryParams()[
'mst_lco_usr_id'];
183 $mst_lco_crs_ref_id = $DIC->http()->request()->getQueryParams()[
'mst_lco_crs_ref_id'];
185 if ($mst_co_usr_id > 0 && $mst_lco_crs_ref_id > 0) {
188 if ($DIC->access()->checkAccess(
"visible",
"", $mst_lco_crs_ref_id)) {
196 'user_id' => $mst_co_usr_id,
197 'object_reference.deleted' => null
198 ), array(
'user_id' =>
'=',
'object_reference.deleted' =>
'!='))->
get() as $org_unit_assignment
200 if ($DIC->access()->checkAccess(
"read",
"", $org_unit_assignment->getOrguId())) {
202 $selection->addItem($org_units[$org_unit_assignment->getOrguId()],
'', $link);
206 $selection = ilMyStaffGUI::extendActionMenuWithUserActions($selection, $mst_co_usr_id, rawurlencode($DIC->ctrl()
207 ->getLinkTarget($this, self::CMD_INDEX)));
209 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)
static _lookupTitle($a_id)
lookup object title
static getTextRepresentationOfOrgUnits($sort_by_title=true)
Get ref id path array.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
Class ilMStShowUserCoursesTableGUI.