29 protected \ILIAS\DI\UIServices
$ui;
36 bool $a_call_by_reference =
true,
37 bool $a_prepare_output =
true
41 $this->
lng = $DIC->language();
42 $this->rbacsystem =
$DIC->rbac()->system();
43 $this->
ctrl = $DIC->ctrl();
44 $this->request =
$DIC->http()->request();
45 $this->
tabs = $DIC->tabs();
46 $this->
ui = $DIC->ui();
47 $this->setting =
$DIC->settings();
48 $this->main_tpl =
$DIC->ui()->mainTemplate();
54 $this->
lng->loadLanguageModule(
"lhist");
72 switch ($next_class) {
73 case 'ilpermissiongui':
80 if ($cmd ===
"view") {
81 $cmd =
"editSettings";
83 if (in_array($cmd, [
"editSettings",
"saveSettings"])) {
134 $fields[
"enable_learning_history"] =
$f->input()->field()->checkbox(
135 $lng->
txt(
"lhist_enable_learning_history"),
136 $lng->
txt(
"lhist_enable_learning_history_info")
138 ->withValue((
bool)
$setting->
get(
"enable_learning_history"));
141 $section1 =
$f->input()->field()->section($fields,
$lng->
txt(
"settings"));
145 return $f->input()->container()->form()->standard(
$form_action, [
"sec" => $section1]);
156 if (
$request->getMethod() ===
"POST") {
157 $form = $form->withRequest(
$request);
158 $data = $form->getData();
159 if (is_array(
$data[
"sec"])) {
160 $setting->
set(
"enable_learning_history", (
int) (
$data[
"sec"][
"enable_learning_history"]));
161 $this->main_tpl->setOnScreenMessage(
'info',
$lng->
txt(
"msg_obj_modified"),
true);
getLinkTarget(object $a_gui_obj, ?string $a_cmd=null, ?string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
@inheritDoc
getNextClass($a_gui_class=null)
@inheritDoc
redirect(object $a_gui_obj, ?string $a_cmd=null, ?string $a_anchor=null, bool $is_async=false)
@inheritDoc
forwardCommand(object $a_gui_object)
@inheritDoc
getCmd(?string $fallback_command=null)
@inheritDoc
getLinkTargetByClass( $a_class, ?string $a_cmd=null, ?string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
@inheritDoc
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getAdminTabs()
administration tabs show only permissions and trash folder
ilGlobalTemplateInterface $main_tpl
__construct( $a_data, int $a_id, bool $a_call_by_reference=true, bool $a_prepare_output=true)
Class ilObjectGUI Basic methods of all Output classes.
prepareOutput(bool $show_sub_objects=true)
ServerRequestInterface $request
class ilRbacSystem system function like checkAccess, addActiveRole ... Supporting system functions ar...
checkAccess(string $a_operations, int $a_ref_id, string $a_type="")
checkAccess represents the main method of the RBAC-system in ILIAS3 developers want to use With this ...
set(string $a_key, string $a_val)
get(string $a_keyword, ?string $a_default_value=null)
get setting
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
addTab(string $a_id, string $a_text, string $a_link, string $a_frame="")
Add a Tab.
activateTab(string $a_id)
setContent(string $a_html)
Sets content for standard template.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.