19 declare(strict_types=1);
38 public function __construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output =
true)
42 $this->
ui = $DIC->ui();
43 $this->src_logger = $DIC->logger()->src();
44 $this->
user = $DIC->user();
48 $this->
lng->loadLanguageModule(
'search');
53 $next_class = $this->
ctrl->getNextClass($this);
54 $cmd = $this->
ctrl->getCmd();
57 switch ($next_class) {
58 case 'ilpermissiongui':
59 $this->tabs_gui->activateTab(
'perm_settings');
61 $ret = $this->
ctrl->forwardCommand($perm_gui);
64 case 'ilobjsearchsettingsformgui':
65 $this->tabs_gui->activateTab(
'settings');
76 $ret = $this->
ctrl->forwardCommand($settings_gui);
79 case 'ilobjsearchlucenesettingsformgui':
80 $this->tabs_gui->activateTab(
'lucene_settings_tab');
93 $ret = $this->
ctrl->forwardCommand($luc_settings_gui);
104 case 'luceneSettings':
116 if (!$this->rbac_system->checkAccess(
'visible,read', $this->object->getRefId())) {
117 $this->error->raiseError($this->
lng->txt(
'permission_denied'), $this->error->MESSAGE);
120 $this->tabs_gui->setTabActive(
'settings');
122 if (!$this->rbac_system->checkAccess(
'write', $this->object->getRefId())) {
123 $this->
ctrl->redirectByClass(
124 [get_class($this),
'ilobjsearchsettingsformgui'],
129 $this->
ctrl->redirectByClass(
130 [get_class($this),
'ilobjsearchsettingsformgui'],
137 if (!$this->rbac_system->checkAccess(
'visible,read', $this->object->getRefId())) {
138 $this->error->raiseError($this->
lng->txt(
'permission_denied'), $this->error->MESSAGE);
141 $this->tabs_gui->setTabActive(
'lucene_settings_tab');
143 if (!$this->rbac_system->checkAccess(
'write', $this->object->getRefId())) {
144 $this->
ctrl->redirectByClass(
145 [get_class($this),
'ilobjsearchlucenesettingsformgui'],
150 $this->
ctrl->redirectByClass(
151 [get_class($this),
'ilobjsearchlucenesettingsformgui'],
163 if ($this->rbac_system->checkAccess(
"visible,read", $this->object->getRefId())) {
164 $this->tabs_gui->addTab(
166 $this->
lng->txt(
'settings'),
167 $this->
ctrl->getLinkTarget($this,
'settings')
171 if ($this->rbac_system->checkAccess(
'read', $this->object->getRefId())) {
172 $this->tabs_gui->addTab(
173 'lucene_settings_tab',
174 $this->
lng->txt(
'lucene_settings_tab'),
175 $this->
ctrl->getLinkTarget($this,
'luceneSettings')
179 if ($this->rbac_system->checkAccess(
'edit_permission', $this->object->getRefId())) {
180 $this->tabs_gui->addTab(
182 $this->
lng->txt(
'perm_settings'),
183 $this->
ctrl->getLinkTargetByClass(
184 [get_class($this),
'ilpermissiongui'],
redirectToLuceneSettings()
prepareOutput(bool $show_sub_objects=true)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Provides fluid interface to RBAC services.
static http()
Fetches the global http state from ILIAS.
Class ilObjectGUI Basic methods of all Output classes.
__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output=true)
__construct(Container $dic, ilPlugin $plugin)