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");
 
An exception for terminatinating execution or to throw for unit testing.
ADT based-object GUI base class.
editAction(ilADTGroupFormBridge $a_form=null)
Edit object ADT properties.
updateAction()
Parse incoming values and update if valid.
initObject()
Init ADT-based object.
initForm()
Init ADT-based form.
prepareFormElements(ilADTGroupFormBridge $a_adt_form)
Prepare/customize form elements.
__construct(ilObjectGUI $a_parent_gui)
Constructor.
static getInstance()
Get singleton.
Class ilObjectGUI Basic methods of all Output classes.
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
if(isset($_POST['submit'])) $form