ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ILIAS\EmployeeTalk\Metadata\EditForm Class Reference
+ Inheritance diagram for ILIAS\EmployeeTalk\Metadata\EditForm:
+ Collaboration diagram for ILIAS\EmployeeTalk\Metadata\EditForm:

Public Member Functions

 __construct (\ilAdvancedMDRecordGUI $md, bool $disabled, string $form_action, string $submit_command, string $submit_label)
 
 importFromPostAndValidate ()
 
 updateMetadata ()
 
 render ()
 
 getFormGUI ()
 Use this only for command forwarding via ctrl! More...
 

Protected Attributes

ilPropertyFormGUI $form
 
ilAdvancedMDRecordGUI $md
 
bool $disabled
 

Detailed Description

Definition at line 23 of file EditForm.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\EmployeeTalk\Metadata\EditForm::__construct ( \ilAdvancedMDRecordGUI  $md,
bool  $disabled,
string  $form_action,
string  $submit_command,
string  $submit_label 
)

Definition at line 29 of file EditForm.php.

References ILIAS\EmployeeTalk\Metadata\EditForm\$disabled, ILIAS\EmployeeTalk\Metadata\EditForm\$form, ILIAS\EmployeeTalk\Metadata\EditForm\$md, ILIAS\UI\examples\Input\Field\Checkbox\disabled(), and ILIAS\Repository\form().

35  {
36  $this->md = $md;
37  $this->disabled = $disabled;
38  $this->form = $this->initForm(
39  $form_action,
40  $submit_command,
41  $submit_label
42  );
43  }
form( $class_path, string $cmd, string $submit_caption="")
disabled()
description: > Example showing how to plug a disabled checkbox into a form
Definition: disabled.php:32
ilAdvancedMDRecordGUI $md
Definition: EditForm.php:26
+ Here is the call graph for this function:

Member Function Documentation

◆ getFormGUI()

ILIAS\EmployeeTalk\Metadata\EditForm::getFormGUI ( )

Use this only for command forwarding via ctrl!

Implements ILIAS\EmployeeTalk\Metadata\EditFormInterface.

Definition at line 102 of file EditForm.php.

References ILIAS\EmployeeTalk\Metadata\EditForm\$form.

103  {
104  return $this->form;
105  }
This class represents a property form user interface.

◆ importFromPostAndValidate()

ILIAS\EmployeeTalk\Metadata\EditForm::importFromPostAndValidate ( )

checkInput must be called before importEditFormPostValues, and ImportEditFormPostValues must always be called, so that input persists through the error handling.

Implements ILIAS\EmployeeTalk\Metadata\EditFormInterface.

Definition at line 76 of file EditForm.php.

References ILIAS\EmployeeTalk\Metadata\EditForm\$disabled, $valid, and ILIAS\Repository\form().

76  : bool
77  {
83  $valid = $this->form->checkInput();
84  $post_imported = $this->md->importEditFormPostValues();
85 
86  return $post_imported && $valid && !$this->disabled;
87  }
$valid
form( $class_path, string $cmd, string $submit_caption="")
+ Here is the call graph for this function:

◆ render()

ILIAS\EmployeeTalk\Metadata\EditForm::render ( )

Implements ILIAS\EmployeeTalk\Metadata\EditFormInterface.

Definition at line 94 of file EditForm.php.

References ILIAS\Repository\form().

94  : string
95  {
96  return $this->form->getHTML();
97  }
form( $class_path, string $cmd, string $submit_caption="")
+ Here is the call graph for this function:

◆ updateMetadata()

ILIAS\EmployeeTalk\Metadata\EditForm::updateMetadata ( )

Implements ILIAS\EmployeeTalk\Metadata\EditFormInterface.

Definition at line 89 of file EditForm.php.

89  : void
90  {
91  $this->md->writeEditForm();
92  }

Field Documentation

◆ $disabled

bool ILIAS\EmployeeTalk\Metadata\EditForm::$disabled
protected

◆ $form

ilPropertyFormGUI ILIAS\EmployeeTalk\Metadata\EditForm::$form
protected

◆ $md

ilAdvancedMDRecordGUI ILIAS\EmployeeTalk\Metadata\EditForm::$md
protected

Definition at line 26 of file EditForm.php.

Referenced by ILIAS\EmployeeTalk\Metadata\EditForm\__construct().


The documentation for this class was generated from the following file: