ADT based-object GUI base class.
More...
ADT based-object GUI base class.
- Author
- Jörg Lützenkirchen luetz.nosp@m.enki.nosp@m.rchen.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
- Version
- $Id$
Definition at line 12 of file class.ilADTBasedObjectGUI.php.
◆ __construct()
ilADTBasedObjectGUI::__construct |
( |
ilObjectGUI |
$a_parent_gui | ) |
|
◆ editAction()
◆ initForm()
ilADTBasedObjectGUI::initForm |
( |
| ) |
|
|
protected |
◆ initObject()
ilADTBasedObjectGUI::initObject |
( |
| ) |
|
|
abstractprotected |
◆ prepareFormElements()
◆ updateAction()
ilADTBasedObjectGUI::updateAction |
( |
| ) |
|
Parse incoming values and update if valid PhpParamsInspection.
Definition at line 93 of file class.ilADTBasedObjectGUI.php.
References $valid, ILIAS\Repository\ctrl(), editAction(), initForm(), ILIAS\Repository\lng(), and ILIAS\Repository\object().
96 $valid = $adt_form->getForm()->checkInput();
98 $old_chksum = $this->
object->getProperties()->getCheckSum();
100 $adt_form->importFromPost();
101 $valid = $adt_form->validate();
103 $changed = ($old_chksum != $this->
object->getProperties()->getCheckSum());
107 $this->tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
"form_input_not_valid"));
113 if ($this->
object->update()) {
114 $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
"settings_saved"),
true);
117 foreach ($this->
object->getDBErrors() as $element_id => $codes) {
118 $element = $adt_form->getElement($element_id);
120 $element->setExternalErrors($this->
object->translateDBErrorCodes($codes));
124 $this->tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
"form_input_not_valid"));
129 $this->
ctrl->redirect($this->gui,
"edit");
editAction(ilADTGroupFormBridge $a_form=null)
initForm()
Init ADT-based form.
◆ $ctrl
ilCtrl ilADTBasedObjectGUI::$ctrl |
|
protected |
◆ $gui
◆ $lng
◆ $object
◆ $tpl
The documentation for this class was generated from the following file: