19declare(strict_types=1);
38 $this->
lng->loadLanguageModule(
"grp");
41 "add_to" => $this->
lng->txt(
"grp_add_to_group")
47 if (!isset(self::$grp_ops[$a_user_id])) {
51 $ops[] =
"create_grp";
55 $ops[] =
"manage_members";
57 self::$grp_ops[$a_user_id] = $ops;
59 return self::$grp_ops[$a_user_id];
70 $this->
lng->loadLanguageModule(
"grp");
74 if (count($commands) == 0) {
79 $f->setType(
"add_to");
80 $f->setText($this->
lng->txt(
"grp_add_to_group"));
82 $ctrl->setParameterByClass(
"ilGroupAddToGroupActionGUI",
"user_id", $a_target_user);
84 "grp-action-add-to" =>
"1",
85 "url" => $ctrl->getLinkTargetByClass(array(
"ildashboardgui",
"ilGroupUserActionsGUI",
"ilGroupAddToGroupActionGUI"),
"",
"",
true,
false)
98 $gui =
$DIC->repository()->internal()->gui();
99 switch ($a_action_type) {
102 "assets/js/GroupUserActions.js",
103 "assets/js/modal.min.js",
static getLocalExplorerJsPath()
static getLocalJsTreeJsPath()
collectActionsForTargetUser(int $a_target_user)
@inheritDoc
getComponentId()
string component id as defined in services.xml/module.xml
getActionTypes()
array[string] keys must be unique action ids (strings), values should be the names of the actions (fr...
getJsScripts(string $a_action_type)
@inheritDoc
static getCommandAccess(int $a_user_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
A class that provides a collection of actions on users.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _getObjectsByOperations( $a_obj_type, string $a_operation, int $a_usr_id=0, int $limit=0)
Get all objects of a specific type and check access This function is not recursive,...