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 26 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 107 of file class.ilADTBasedObjectGUI.php.
References $valid, ILIAS\Repository\ctrl(), editAction(), initForm(), ILIAS\Repository\lng(), and ILIAS\Repository\object().
110 $valid = $adt_form->getForm()->checkInput();
112 $old_chksum = $this->
object->getProperties()->getCheckSum();
114 $adt_form->importFromPost();
115 $valid = $adt_form->validate();
117 $changed = ($old_chksum != $this->
object->getProperties()->getCheckSum());
121 $this->tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
"form_input_not_valid"));
127 if ($this->
object->update()) {
128 $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
"settings_saved"),
true);
131 foreach ($this->
object->getDBErrors() as $element_id => $codes) {
132 $element = $adt_form->getElement($element_id);
134 $element->setExternalErrors($this->
object->translateDBErrorCodes($codes));
138 $this->tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
"form_input_not_valid"));
143 $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: