41 $main_tpl = $DIC->ui()->mainTemplate();
43 $this->tpl = $DIC->ui()->mainTemplate();
44 $this->
ctrl = $DIC->ctrl();
46 $this->parent_object = $parent_gui->
getObject();
47 $this->tabs_gui = $DIC->tabs();
48 $this->
toolbar = $DIC->toolbar();
49 $this->
lng = $DIC->language();
51 $this->
lng->loadLanguageModule(
'user');
52 if (!$this->
ilAccess->checkaccess(
"write",
"", $this->parent_gui->getObject()->getRefId())) {
53 $main_tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
"permission_denied"),
true);
59 $cmd = $this->
ctrl->getCmd();
73 public function edit(): void
76 $this->tpl->setContent($form->
getHTML());
83 $input->setValue($this->parent_object->getImportId());
96 $this->parent_object->setImportId($form->
getItemByPostVar(
"ext_id")->getValue());
97 $this->parent_object->update();
98 $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
"ext_id_updated"),
true);
99 $this->
ctrl->redirect($this,
"edit");
101 $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...