44 $this->ctrl = $DIC->ctrl();
45 $this->lng = $DIC->language();
46 $this->tpl = $DIC[
"tpl"];
47 $this->ref_id = (int)
$_GET[
"ref_id"];
48 $this->rbabsystem = $DIC->rbac()->system();
50 $this->lng->loadLanguageModule(
"usr");
60 $this->action_context = $a_val;
78 $next_class = $this->ctrl->getNextClass($this);
79 $cmd = $this->ctrl->getCmd(
"show");
81 switch ($next_class) {
83 if (in_array($cmd, array(
"show",
"save"))) {
99 include_once(
"./Services/User/Actions/classes/class.ilUserActionAdminTableGUI.php");
104 $this->rbabsystem->checkAccess(
"write", $this->ref_id)
106 $this->tpl->setContent(
$tab->getHTML());
114 if (!$this->rbabsystem->checkAccess(
"write", $this->ref_id)) {
115 $this->ctrl->redirect($this,
"show");
119 include_once(
"./Services/User/Actions/classes/class.ilUserActionAdmin.php");
122 $this->action_context->getComponentId(),
123 $this->action_context->getContextId(),
124 $a[
"action_comp_id"],
125 $a[
"action_type_id"],
126 (int)
$_POST[
"active"][$a[
"action_comp_id"] .
":" . $a[
"action_type_id"]]
129 ilUtil::sendSuccess($this->lng->txt(
"msg_obj_modified"),
true);
130 $this->ctrl->redirect($this,
"show");
141 include_once(
"./Services/User/Actions/classes/class.ilUserActionProviderFactory.php");
142 include_once(
"./Services/User/Actions/classes/class.ilUserActionAdmin.php");
145 foreach ($p->getActionTypes() as
$id =>
$name) {
147 "action_comp_id" => $p->getComponentId(),
148 "action_type_id" =>
$id,
149 "action_type_name" =>
$name,
151 $this->action_context->getComponentId(),
152 $this->action_context->getContextId(),
153 $p->getComponentId(),
setActionContext(ilUserActionContext $a_val=null)
Set action context.
executeCommand()
Execute command.
User action administration GUI class.
static getAllProviders()
Get all action providers.
__construct()
Constructor.
if(!array_key_exists('StateId', $_REQUEST)) $id
static lookupActive($a_context_comp, $a_context_id, $a_action_comp, $a_action_type)
Is activated?
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
A context where user actions are used (e.g.
save()
Save !!!! note in the future this must depend on the context, currently we only have one...
getActionContext()
Get action context.
static activateAction($a_context_comp, $a_context_id, $a_action_comp, $a_action_type, $a_active)
Activate action.
TableGUI class for user action administration.
getActions()
Get actions, !!!! note in the future this must depend on the context, currently we only have one...