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];
77 $this->lng->loadLanguageModule(
"grp");
81 $commands = self::getCommandAccess($this->user_id);
82 if (count($commands) == 0) {
87 $f->setType(
"add_to");
88 $f->setText($this->lng->txt(
"grp_add_to_group"));
90 $ctrl->setParameterByClass(
"ilGroupAddToGroupActionGUI",
"user_id", $a_target_user);
92 "grp-action-add-to" =>
"1",
93 "url" => $ctrl->getLinkTargetByClass(array(
"ilPersonalDesktopGUI",
"ilGroupUserActionsGUI",
"ilGroupAddToGroupActionGUI"),
"",
"",
true,
false)
108 switch ($a_action_type) {
110 include_once(
"./Services/UIComponent/Explorer2/classes/class.ilExplorerBaseGUI.php");
112 "./Modules/Group/UserActions/js/GroupUserActions.js",
113 "./src/UI/templates/js/Modal/modal.js",
127 switch ($a_action_type) {
getCssFiles($a_action_type)
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.
static getLocalJsTreeCssPath()
Get local path of jsTree js.
Action that can be performed on a user.