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->
error = $DIC[
"ilErr"];
47 $this->
ctrl = $DIC->ctrl();
48 $this->request =
$DIC->http()->request();
49 $this->
tabs = $DIC->tabs();
50 $this->
ui = $DIC->ui();
51 $this->setting =
$DIC->settings();
52 $this->main_tpl =
$DIC->ui()->mainTemplate();
58 $this->
lng->loadLanguageModule(
"note");
75 $this->
error->raiseError($this->
lng->txt(
'no_permission'), $this->error->WARNING);
80 switch ($next_class) {
81 case 'ilpermissiongui':
88 if ($cmd ===
"view") {
89 $cmd =
"editSettings";
91 if (in_array($cmd, [
"editSettings",
"saveSettings"])) {
142 $fields[
"enable_notes"] =
$f->input()->field()->checkbox(
$lng->
txt(
"note_enable_notes"))
146 $section1 =
$f->input()->field()->section($fields,
$lng->
txt(
"settings"));
149 return $f->input()->container()->form()->standard(
$form_action, [
"sec" => $section1]);
160 if (
$request->getMethod() ===
"POST") {
161 $form = $form->withRequest(
$request);
162 $data = $form->getData();
163 if (is_array(
$data[
"sec"])) {
165 $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
Error Handling & global info handling.
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...
getAdminTabs()
administration tabs show only permissions and trash folder
executeCommand()
Execute command.
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