36 $cmd = $this->
ctrl->getCmd();
40 default =>
throw new Exception(
'Unknown command ' . $cmd),
49 $this->tpl->setContent($form->getHTML());
55 $form->setFormAction($this->
ctrl->getFormAction($this));
56 $form->setTitle($this->
txt(
'obj_features'));
57 $form->addCommandButton(self::CMD_SAVE, $this->
txt(
'save'));
58 $form->addCommandButton(self::CMD_EDIT, $this->
txt(
'cancel'));
84 if (!$form->checkInput()) {
85 $form->setValuesByPost();
96 $this->tpl->setOnScreenMessage(
"success", $this->
lng->txt(
'service_settings_saved'),
true);
97 $this->
ctrl->redirect($this, self::CMD_EDIT);
100 protected function txt(
string $code): string
102 return $this->
lng->txt($code);
Class ilCtrl provides processing control methods.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(protected ilObjFile $object, protected ilCtrl $ctrl, protected ilGlobalTemplateInterface $tpl, protected ilLanguage $lng, protected ilObjectService $object_service)
addCommonFieldsToForm(ilPropertyFormGUI $form)
addServiceSettingsToForm(ilPropertyFormGUI $form)
editSettings(?ilPropertyFormGUI $form=null)
static updateServiceSettingsForm(int $obj_id, ilPropertyFormGUI $form, array $services)
static initServiceSettingsForm(int $obj_id, ilPropertyFormGUI $form, array $services)