User action administration GUI class.
More...
User action administration GUI class.
- Author
- Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de
Definition at line 32 of file class.ilUserActionAdminGUI.php.
◆ buildForm()
ilUserActionAdminGUI::buildForm |
( |
| ) |
|
|
private |
◆ executeCommand()
ilUserActionAdminGUI::executeCommand |
( |
| ) |
|
Definition at line 75 of file class.ilUserActionAdminGUI.php.
75 : void
76 {
77 $next_class = $this->
ctrl->getNextClass($this);
78 $cmd = $this->
ctrl->getCmd(
'show');
79
80 switch ($next_class) {
81 default:
82 if (in_array($cmd, ['show', 'save'])) {
83 $this->$cmd();
84 }
85 }
86 }
References ILIAS\Repository\ctrl().
◆ getActionContext()
ilUserActionAdminGUI::getActionContext |
( |
| ) |
|
Definition at line 70 of file class.ilUserActionAdminGUI.php.
71 {
73 }
ilUserActionContext $action_context
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
References $action_context.
◆ getActions()
ilUserActionAdminGUI::getActions |
( |
| ) |
|
|
private |
Definition at line 153 of file class.ilUserActionAdminGUI.php.
153 : \Generator
154 {
156 foreach ($p->getActionTypes() as
$id => $name) {
157 yield [
158 'action_comp_id' => $p->getComponentId(),
159 'action_type_id' =>
$id,
160 'action_type_name' => $name,
161 'active' => $this->user_action_admin->isActionActive(
162 $this->action_context->getComponentId(),
163 $this->action_context->getContextId(),
164 $p->getComponentId(),
166 )
167 ];
168 }
169 }
170 }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
References $id.
Referenced by buildForm(), save(), and show().
◆ save()
ilUserActionAdminGUI::save |
( |
| ) |
|
Definition at line 127 of file class.ilUserActionAdminGUI.php.
127 : void
128 {
129 if (!$this->rbabsystem->checkAccess('write', $this->ref_id)) {
130 $this->
ctrl->redirect($this,
'show');
131 }
132
133 $form = $this->
buildForm()->withRequest($this->request);
134 $data = $form->getData();
135 if (
$data ===
null) {
136 $this->tpl->setContent($this->ui_renderer->render($form));
137 return;
138 }
139
141 $this->user_action_admin->activateAction(
142 $this->action_context->getComponentId(),
143 $this->action_context->getContextId(),
144 $action['action_comp_id'],
145 $action['action_type_id'],
146 $data[
"{$action['action_comp_id']}:{$action['action_type_id']}"] ??
false
147 );
148 }
149 $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
'msg_obj_modified'),
true);
151 }
References $data, buildForm(), ILIAS\Repository\ctrl(), getActions(), ILIAS\Repository\lng(), and show().
◆ setActionContext()
◆ show()
ilUserActionAdminGUI::show |
( |
| ) |
|
◆ $action_context
◆ $ctrl
ilCtrl ilUserActionAdminGUI::$ctrl |
|
private |
◆ $lng
◆ $rbabsystem
◆ $ref_id
int ilUserActionAdminGUI::$ref_id |
|
private |
◆ $request
ServerRequestInterface ilUserActionAdminGUI::$request |
|
private |
◆ $tpl
◆ $ui_factory
UIFactory ilUserActionAdminGUI::$ui_factory |
|
private |
◆ $ui_renderer
UIRenderer ilUserActionAdminGUI::$ui_renderer |
|
private |
◆ $user_action_admin
The documentation for this class was generated from the following file: