5include_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");
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",
An exception for terminatinating execution or to throw for unit testing.
static getLocalExplorerJsPath()
Get local path of explorer js.
static getLocalJsTreeJsPath()
Get local path of jsTree js.
Group user actions (add to group)
collectActionsForTargetUser($a_target_user)
Collect user actions.
getJsScripts($a_action_type)
Get js scripts.
static getCommandAccess($a_user_id)
Get command access for user.
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...
static getInstance()
Get instance.
A class that provides a collection of actions on users.
Action that can be performed on a user.
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,...