19declare(strict_types=1);
38 $this->wrapper =
$DIC->http()->wrapper();
39 $this->bench =
$DIC[
"ilBench"];
51 $this->
lng->loadLanguageModule($this->
getType());
54 switch ($this->
ctrl->getNextClass($this)) {
55 case strtolower(ilPermissionGUI::class):
56 $this->tabs_gui->activateTab(
'permissions');
58 $this->
ctrl->forwardCommand($perm_gui);
62 $cmd = $this->
ctrl->getCmd(
"view");
66 $this->tabs_gui->activateTab(
'settings');
74 case 'by_first_table':
76 $this->tabs_gui->activateTab(
'view');
77 $this->tabs_gui->activateSubTab($cmd);
86 $this->tabs_gui->addTab(
88 $this->
lng->txt(
'view'),
89 $this->ctrl->getLinkTarget($this,
'view')
93 $this->tabs_gui->addTab(
95 $this->
lng->txt(
'settings'),
96 $this->ctrl->getLinkTarget($this,
'settings')
100 $this->tabs_gui->addTab(
102 $this->
lng->txt(
'perm_settings'),
103 $this->ctrl->getLinkTargetByClass([self::class, ilPermissionGUI::class],
'perm')
110 $this->tabs_gui->addSubTab(
112 $this->
lng->txt(
'adm_db_bench_chronological'),
113 $this->ctrl->getLinkTarget($this,
'view')
116 $this->tabs_gui->addSubTab(
118 $this->
lng->txt(
'adm_db_bench_slowest_first'),
119 $this->ctrl->getLinkTarget($this,
'slowest_first')
122 $this->tabs_gui->addSubTab(
124 $this->
lng->txt(
'adm_db_bench_sorted_by_sql'),
125 $this->ctrl->getLinkTarget($this,
'sorted_by_sql')
128 $this->tabs_gui->addSubTab(
130 $this->
lng->txt(
'adm_db_bench_by_first_table'),
131 $this->ctrl->getLinkTarget($this,
'by_first_table')
142 $cb->setInfo($this->
lng->txt(
"adm_activate_db_benchmark_desc"));
143 $this->
form->addItem($cb);
148 $ti->setValue($login);
149 $ti->setInfo($this->
lng->txt(
"adm_db_benchmark_user_desc"));
150 $this->
form->addItem($ti);
152 $this->
form->setTitle($this->
lng->txt(
"adm_db_benchmark"));
153 $this->
form->setFormAction($this->
ctrl->getFormAction($this));
154 $this->
form->addCommandButton(
'update', $this->
lng->txt(
'save'));
156 $this->tpl->setContent($this->
form->getHTML());
166 $this->bench->clearData();
167 $this->bench->enableDbBenchmarkForUserName($user_name);
170 $this->bench->clearData();
171 $this->bench->disableDbBenchmark();
174 $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
"msg_obj_modified"),
true);
175 $this->
ctrl->redirect($this,
'settings');
180 $cmd = $this->
ctrl->getCmd(
"view");
181 $mode = $cmd ===
'view' ?
'chronological' : $cmd;
184 $this->tpl->setContent($table->getHTML());
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
@ilCtrl_isCalledBy ilObjBenchmarkGUI: ilAdministrationGUI @ilCtrl_Calls ilObjBenchmarkGUI: ilPermissi...
getType()
Functions that must be overwritten.
__construct(int $id=0, int $id_type=self::REPOSITORY_NODE_ID, int $parent_node_id=0)
getAdminTabs()
administration tabs show only permissions and trash folder
executeCommand()
execute command
view()
view object content (repository/workspace switch)
WrapperFactoryAlias $wrapper
static _lookupLogin(int $a_user_id)
New implementation of ilObjectGUI.
checkPermissionBool(string $perm, string $cmd="", string $type="", ?int $node_id=null)
checkPermission(string $perm, string $cmd="", string $type="", ?int $ref_id=null)
prepareOutput(bool $show_sub_objects=true)
This class represents a text property in a property form.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
form(?array $class_path, string $cmd, string $submit_caption="")