25 $this->gui = $a_parent_gui;
53 $tpl->setContent($a_form->getForm()->getHTML());
72 include_once
"Services/Form/classes/class.ilPropertyFormGUI.php";
74 $form->setFormAction($ilCtrl->getFormAction($this->gui,
"updateAction"));
79 $adt_form->setForm($form);
83 $adt_form->addToForm();
84 $adt_form->addJS($tpl);
87 $form->addCommandButton(
"updateAction", $lng->txt(
"save"));
100 $valid = $adt_form->getForm()->checkInput();
102 $old_chksum = $this->
object->getProperties()->getCheckSum();
104 $adt_form->importFromPost();
105 $valid = $adt_form->validate();
107 $changed = ($old_chksum != $this->
object->getProperties()->getCheckSum());
119 if($this->
object->update())
126 foreach($this->
object->getDBErrors() as $element_id => $codes)
128 $element = $adt_form->getElement($element_id);
131 $element->setExternalErrors($this->
object->translateDBErrorCodes($codes));
140 $ilCtrl->redirect($this->gui,
"edit");
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
getProperties()
Get properties.
static getInstance()
Get singleton.
prepareFormElements(ilADTGroupFormBridge $a_adt_form)
Prepare/customize form elements.
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.
Create new PHPExcel object
obj_idprivate
ADT based-object GUI base class.