19 declare(strict_types=1);
25 protected \ilPropertyFormGUI
$form;
26 protected \ilAdvancedMDRecordGUI
$md;
33 string $submit_command,
38 $this->
form = $this->initForm(
45 protected function initForm(
47 string $submit_command,
50 $form = new \ilPropertyFormGUI();
51 $form->setFormAction($form_action);
53 $this->md->setPropertyForm($form);
57 $form->addCommandButton($submit_command, $submit_label);
62 foreach ($form->getInputItemsRecursive() as $item) {
64 $item->__call(
'setValue', [
'']);
65 $item->__call(
'setDisabled', [
true]);
67 if (method_exists($item,
'setDisabled')) {
69 $item->setDisabled(
true);
84 $post_imported = $this->md->importEditFormPostValues();
91 $this->md->writeEditForm();
96 return $this->
form->getHTML();
form( $class_path, string $cmd, string $submit_caption="")