5 include_once(
"./Services/User/Actions/classes/class.ilUserActionProvider.php");
34 $this->lng->loadLanguageModule(
"grp");
37 "add_to" => $this->lng->txt(
"grp_add_to_group")
49 if (!isset(self::$grp_ops[$a_user_id])) {
53 $ops[] =
"create_grp";
57 $ops[] =
"manage_members";
59 self::$grp_ops[$a_user_id] = $ops;
61 return self::$grp_ops[$a_user_id];
76 $this->lng->loadLanguageModule(
"grp");
79 $commands = self::getCommandAccess($this->user_id);
80 if (count($commands) == 0) {
85 $f->setType(
"add_to");
86 $f->setText($this->lng->txt(
"grp_add_to_group"));
88 $ctrl->setParameterByClass(
"ilGroupAddToGroupActionGUI",
"user_id", $a_target_user);
90 "grp-action-add-to" =>
"1",
91 "url" => $ctrl->getLinkTargetByClass(array(
"ildashboardgui",
"ilGroupUserActionsGUI",
"ilGroupAddToGroupActionGUI"),
"",
"",
true,
false)
106 switch ($a_action_type) {
108 include_once(
"./Services/UIComponent/Explorer2/classes/class.ilExplorerBaseGUI.php");
110 "./Modules/Group/UserActions/js/GroupUserActions.js",
111 "./src/UI/templates/js/Modal/modal.js",
A class that provides a collection of actions on users.
static getInstance()
Get instance.
static _getObjectsByOperations($a_obj_type, $a_operation, $a_usr_id=0, $limit=0)
Get all objects of a specific type and check access This function is not recursive, instead it parses the serialized rbac_pa entries.
getJsScripts($a_action_type)
Get js scripts.
static getLocalJsTreeJsPath()
Get local path of jsTree js.
static getLocalExplorerJsPath()
Get local path of explorer js.
Group user actions (add to group)
collectActionsForTargetUser($a_target_user)
Collect user actions.
static getCommandAccess($a_user_id)
Get command access for user.
Action that can be performed on a user.