19 declare(strict_types=1);
34 $a_adt_form->
getForm()->setTitle($this->
lng->txt(
"test_form_title"));
35 $a_adt_form->
setTitle($this->
lng->txt(
"test_form_section_title"));
36 $a_adt_form->
setInfo($this->
lng->txt(
"test_form_section_title_info"));
38 foreach ($a_adt_form->
getElements() as $name => $element) {
39 $element->setTitle($this->
lng->txt(
"test_form_" . $name));
42 $a_adt_form->
getElement(
"name")->setRequired(
true);
43 $a_adt_form->
getElement(
"lang")->setRequired(
true);
44 $a_adt_form->
getElement(
"tags")->setRequired(
true);
47 $a_adt_form->
getElement(
"lang")->forceRadio(
true, array(
"en" => $this->
lng->txt(
"lang_en_info")));
49 $a_adt_form->
getElement(
"entry_date")->setParentElement(
"active");
54 $a_adt_form->
getElement(
"tags")->setParentElement(array(
"lang",
"de"));
55 $a_adt_form->
getElement(
"tags")->setInfo($this->
lng->txt(
"test_form_tags_info"));
prepareFormElements(ilADTGroupFormBridge $a_adt_form)
This is a ADT-based example object It has all supported ADTs and shows DB sequence-handling.
This is the GUI for the ADT-based example object It expects an existing record with Id 1 and doesn't ...
ADT based-object base class Currently "mixed" with ActiveRecord-pattern, could be splitted...
ADT based-object GUI base class.