19declare(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,
53 $this->md->setPropertyForm(
$form);
57 $form->addCommandButton($submit_command, $submit_label);
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();
86 return $post_imported &&
$valid && !$this->disabled;
91 $this->md->writeEditForm();
96 return $this->
form->getHTML();
form( $class_path, string $cmd, string $submit_caption="")