ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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...
 
 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.

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 }
ilAdvancedMDRecordGUI $md
Definition: EditForm.php:26
form( $class_path, string $cmd, string $submit_caption="")

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

+ 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.

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.

76 : bool
77 {
83 $valid = $this->form->checkInput();
84 $post_imported = $this->md->importEditFormPostValues();
85
86 return $post_imported && $valid && !$this->disabled;
87 }
$valid

References $valid, and ILIAS\Repository\form().

+ 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.

94 : string
95 {
96 return $this->form->getHTML();
97 }

References ILIAS\Repository\form().

+ 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

Definition at line 27 of file EditForm.php.

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

◆ $form

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

Definition at line 25 of file EditForm.php.

◆ $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: