32 protected \ILIAS\DI\UIServices
$ui;
39 bool $a_call_by_reference =
true,
40 bool $a_prepare_output =
true
44 $this->
lng = $DIC->language();
45 $this->rbacsystem =
$DIC->rbac()->system();
46 $this->
ctrl = $DIC->ctrl();
47 $this->request =
$DIC->http()->request();
48 $this->
tabs = $DIC->tabs();
49 $this->
ui = $DIC->ui();
50 $this->setting =
$DIC->settings();
51 $this->main_tpl =
$DIC->ui()->mainTemplate();
57 $this->
lng->loadLanguageModule(
"note");
79 switch ($next_class) {
80 case 'ilpermissiongui':
87 if ($cmd ===
"view") {
88 $cmd =
"editSettings";
90 if (in_array($cmd, [
"editSettings",
"saveSettings"])) {
141 $subfields[
"comm_del_user"] =
$f->input()->field()->checkbox(
142 $lng->
txt(
"note_enable_comments_del_user")
144 ->withValue((
bool)
$setting->
get(
"comments_del_user",
'0'));
145 $subfields[
"comm_del_tutor"] =
$f->input()->field()->checkbox(
146 $lng->
txt(
"note_enable_comments_del_tutor"),
147 $lng->
txt(
"note_enable_comments_del_tutor_info")
149 ->withValue((
bool)
$setting->
get(
"comments_del_tutor",
'1'));
150 $subfields[
"comments_noti_recip"] =
$f->input()->field()->text(
151 $lng->
txt(
"note_comments_notification"),
152 $lng->
txt(
"note_comments_notification_info")
154 ->withValue((
string)
$setting->
get(
"comments_noti_recip"));
157 $subfields[
"enable_comments_export"] =
$f->input()->field()->checkbox(
158 $lng->
txt(
"enable_comments_export"),
159 $lng->
txt(
"note_enable_comments_export_info")
161 ->withValue($privacy->enabledCommentsExport());
164 $fields[
"enable_comments"] =
$f->input()->field()->optionalGroup(
166 $lng->
txt(
"note_enable_comments"),
170 $fields[
"enable_comments"] = $fields[
"enable_comments"]->withValue(
null);
174 $section1 =
$f->input()->field()->section($fields,
$lng->
txt(
"settings"));
177 return $f->input()->container()->form()->standard(
$form_action, [
"sec" => $section1]);
188 if (
$request->getMethod() ===
"POST") {
189 $form = $form->withRequest(
$request);
190 $data = $form->getData();
191 if (isset(
$data[
"sec"])) {
193 $disable_comments = (bool) (is_array(
$data) ? 0 : 1);
195 if (!$disable_comments) {
201 $privacy->enableCommentsExport((
bool)
$data[
'enable_comments_export']);
204 $this->main_tpl->setOnScreenMessage(
'info',
$lng->
txt(
"msg_obj_modified"),
true);
212 switch ($a_form_id) {
219 return array(array(
"editSettings", $fields));
getLinkTargetByClass( $a_class, 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
getCmd(string $fallback_command=null)
@inheritDoc
getLinkTarget(object $a_gui_obj, string $a_cmd=null, string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
@inheritDoc
forwardCommand(object $a_gui_object)
@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...
Class ilObjectGUI Basic methods of all Output classes.
prepareOutput(bool $show_sub_objects=true)
ServerRequestInterface $request
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
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 ...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setContent(string $a_html)
Sets content for standard template.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ChatMainBarProvider \MainMenu\Provider.