40 $this->ctrl =
$DIC->ctrl();
41 $this->lng =
$DIC->language();
42 $this->tpl =
$DIC[
"tpl"];
44 $this->lng->loadLanguageModule(
"usr");
53 $next_class = $this->ctrl->getNextClass($this);
54 $cmd = $this->ctrl->getCmd(
"show");
59 if (in_array(
$cmd, array(
"show",
"save")))
76 include_once(
"./Services/User/Actions/classes/class.ilUserActionAdminTableGUI.php");
78 $this->tpl->setContent(
$tab->getHTML());
87 include_once(
"./Services/User/Actions/classes/class.ilUserActionAdmin.php");
91 (
int)
$_POST[
"active"][$a[
"action_comp_id"] .
":" . $a[
"action_type_id"]]);
94 $this->ctrl->redirect($this,
"show");
105 include_once(
"./Services/User/Actions/classes/class.ilUserActionProviderFactory.php");
106 include_once(
"./Services/User/Actions/classes/class.ilUserActionAdmin.php");
110 foreach ($p->getActionTypes() as $id => $name)
113 "action_comp_id" => $p->getComponentId(),
114 "action_type_id" => $id,
115 "action_type_name" => $name,
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.
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?
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.