25 $this->gui = $a_parent_gui;
54 $tpl->setContent($a_form->getForm()->getHTML());
77 include_once
"Services/Form/classes/class.ilPropertyFormGUI.php";
79 $form->setFormAction(
$ilCtrl->getFormAction($this->gui,
"updateAction"));
84 $adt_form->setForm(
$form);
88 $adt_form->addToForm();
89 $adt_form->addJS(
$tpl);
92 $form->addCommandButton(
"updateAction",
$lng->txt(
"save"));
108 $valid = $adt_form->getForm()->checkInput();
110 $old_chksum = $this->
object->getProperties()->getCheckSum();
112 $adt_form->importFromPost();
113 $valid = $adt_form->validate();
115 $changed = ($old_chksum != $this->
object->getProperties()->getCheckSum());
125 if ($this->object->update()) {
126 ilUtil::sendSuccess(
$lng->txt(
"settings_saved"),
true);
129 foreach ($this->object->getDBErrors() as $element_id => $codes) {
130 $element = $adt_form->getElement($element_id);
132 $element->setExternalErrors($this->object->translateDBErrorCodes($codes));
141 $ilCtrl->redirect($this->gui,
"edit");
static getInstance()
Get singleton.
prepareFormElements(ilADTGroupFormBridge $a_adt_form)
Prepare/customize form elements.
if(isset($_POST['submit'])) $form
updateAction()
Parse incoming values and update if valid.
Class ilObjectGUI Basic methods of all Output classes.
__construct(ilObjectGUI $a_parent_gui)
Constructor.
initObject()
Init ADT-based object.
editAction(ilADTGroupFormBridge $a_form=null)
Edit object ADT properties.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
initForm()
Init ADT-based form.
ADT based-object GUI base class.