42 $main_tpl = $DIC->ui()->mainTemplate();
44 $this->tpl = $DIC->ui()->mainTemplate();
45 $this->
ctrl = $DIC->ctrl();
47 $this->parent_object = $parent_gui->
getObject();
48 $this->tabs_gui = $DIC->tabs();
49 $this->
toolbar = $DIC->toolbar();
50 $this->
lng = $DIC->language();
52 $this->
lng->loadLanguageModule(
'user');
53 if (!$this->
ilAccess->checkaccess(
"write",
"", $this->parent_gui->getObject()->getRefId())) {
54 $main_tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
"permission_denied"),
true);
60 $cmd = $this->
ctrl->getCmd();
74 public function edit(): void
77 $this->tpl->setContent($form->
getHTML());
84 $input->setValue($this->parent_object->getImportId());
97 $this->parent_object->setImportId($form->
getItemByPostVar(
"ext_id")->getValue());
98 $this->parent_object->update();
99 $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
"ext_id_updated"),
true);
100 $this->
ctrl->redirect($this,
"edit");
102 $this->tpl->setContent($form->
getHTML());
ilAccessHandler $ilAccess
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(ilObjectGUI $parent_gui)
ilGlobalTemplateInterface $tpl
Class ilObjectGUI Basic methods of all Output classes.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...