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"]]
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(),
An exception for terminatinating execution or to throw for unit testing.
User action administration GUI class.
executeCommand()
Execute command.
__construct()
Constructor.
getActions()
Get actions, !!!! note in the future this must depend on the context, currently we only have one.
setActionContext(ilUserActionContext $a_val=null)
Set action context.
getActionContext()
Get action context.
save()
Save !!!! note in the future this must depend on the context, currently we only have one.
TableGUI class for user action administration.
static activateAction($a_context_comp, $a_context_id, $a_action_comp, $a_action_type, $a_active)
Activate action.
static lookupActive($a_context_comp, $a_context_id, $a_action_comp, $a_action_type)
Is activated?
A context where user actions are used (e.g.
static getAllProviders()
Get all action providers.
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
if(!array_key_exists('StateId', $_REQUEST)) $id