25 $this->gui = $a_parent_gui;
52 $tpl->setContent($a_form->getForm()->getHTML());
71 include_once
"Services/Form/classes/class.ilPropertyFormGUI.php";
73 $form->setFormAction($ilCtrl->getFormAction($this->gui,
"updateAction"));
78 $adt_form->setForm(
$form);
82 $adt_form->addToForm();
83 $adt_form->addJS($tpl);
86 $form->addCommandButton(
"updateAction", $lng->txt(
"save"));
99 $valid = $adt_form->getForm()->checkInput();
101 $old_chksum = $this->
object->getProperties()->getCheckSum();
103 $adt_form->importFromPost();
104 $valid = $adt_form->validate();
106 $changed = ($old_chksum != $this->
object->getProperties()->getCheckSum());
116 if ($this->
object->update()) {
120 foreach ($this->
object->getDBErrors() as $element_id => $codes) {
121 $element = $adt_form->getElement($element_id);
123 $element->setExternalErrors($this->
object->translateDBErrorCodes($codes));
132 $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.
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.
Create new PHPExcel object
obj_idprivate
ADT based-object GUI base class.