ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\EmployeeTalk\Metadata\MetadataHandler Class Reference
+ Inheritance diagram for ILIAS\EmployeeTalk\Metadata\MetadataHandler:
+ Collaboration diagram for ILIAS\EmployeeTalk\Metadata\MetadataHandler:

Public Member Functions

 getEditForm (string $type, int $id, string $subtype, int $sub_id, string $form_action, string $submit_command, string $submit_label)
 
 getDisabledEditForm (string $type, int $id, string $subtype, int $sub_id)
 
 copyValues (string $from_type, int $from_id, string $to_type, int $to_id, string $subtype)
 
 attachSelectionToForm (string $type, int $id, string $subtype, int $sub_id, \ilPropertyFormGUI $form)
 
 saveSelectionFromForm (string $type, int $id, string $subtype, int $sub_id, \ilPropertyFormGUI $form)
 
 getEditForm (string $type, int $id, string $subtype, int $sub_id, string $form_action, string $submit_command, string $submit_label)
 
 getDisabledEditForm (string $type, int $id, string $subtype, int $sub_id)
 
 copyValues (string $from_type, int $from_id, string $to_type, int $to_id, string $subtype)
 
 attachSelectionToForm (string $type, int $id, string $subtype, int $sub_id, \ilPropertyFormGUI $form)
 
 saveSelectionFromForm (string $type, int $id, string $subtype, int $sub_id, \ilPropertyFormGUI $form)
 

Protected Member Functions

 initMetaData (string $type, int $id, string $subtype, int $sub_id, int $mode)
 

Detailed Description

Definition at line 23 of file MetadataHandler.php.

Member Function Documentation

◆ attachSelectionToForm()

ILIAS\EmployeeTalk\Metadata\MetadataHandler::attachSelectionToForm ( string  $type,
int  $id,
string  $subtype,
int  $sub_id,
\ilPropertyFormGUI  $form 
)

Implements ILIAS\EmployeeTalk\Metadata\MetadataHandlerInterface.

Definition at line 86 of file MetadataHandler.php.

92 : void {
93 $md = $this->initMetaData($type, $id, $subtype, $sub_id, \ilAdvancedMDRecordGUI::MODE_REC_SELECTION);
94 $md->setPropertyForm($form);
95 $md->parse();
96 }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
initMetaData(string $type, int $id, string $subtype, int $sub_id, int $mode)

◆ copyValues()

ILIAS\EmployeeTalk\Metadata\MetadataHandler::copyValues ( string  $from_type,
int  $from_id,
string  $to_type,
int  $to_id,
string  $subtype 
)

Implements ILIAS\EmployeeTalk\Metadata\MetadataHandlerInterface.

Definition at line 48 of file MetadataHandler.php.

54 : void {
55 // assign talk series type to adv md records of the template
57 $from_type,
58 $from_id,
59 $subtype,
60 false
61 ) as $rec) {
62 if (!$rec->isAssignedObjectType($to_type, $subtype)) {
63 $rec->appendAssignedObjectType(
64 $to_type,
65 $subtype,
66 true
67 );
68 $rec->update();
69 }
70 }
71
73 $to_id,
74 $subtype,
76 );
77
79 0,
80 $from_id,
81 $to_id,
82 $subtype
83 );
84 }
static getObjRecSelection(int $a_obj_id, string $a_sub_type="")
Get repository object record selection.
static _getSelectedRecordsByObject(string $a_obj_type, int $a_id, string $a_sub_type="", bool $is_ref_id=true)
static saveObjRecSelection(int $a_obj_id, string $a_sub_type="", ?array $a_records=null, bool $a_delete_before=true)
Save repository object record selection.
static _cloneValues(int $copy_id, int $a_source_id, int $a_target_id, ?string $a_sub_type=null, ?int $a_source_sub_id=null, ?int $a_target_sub_id=null)
Clone Advanced Meta Data.

◆ getDisabledEditForm()

ILIAS\EmployeeTalk\Metadata\MetadataHandler::getDisabledEditForm ( string  $type,
int  $id,
string  $subtype,
int  $sub_id 
)

Implements ILIAS\EmployeeTalk\Metadata\MetadataHandlerInterface.

Definition at line 38 of file MetadataHandler.php.

43 : EditFormInterface {
44 $md = $this->initMetaData($type, $id, $subtype, $sub_id, \ilAdvancedMDRecordGUI::MODE_EDITOR);
45 return new EditForm($md, true, '', '', '');
46 }

◆ getEditForm()

ILIAS\EmployeeTalk\Metadata\MetadataHandler::getEditForm ( string  $type,
int  $id,
string  $subtype,
int  $sub_id,
string  $form_action,
string  $submit_command,
string  $submit_label 
)

Implements ILIAS\EmployeeTalk\Metadata\MetadataHandlerInterface.

Definition at line 25 of file MetadataHandler.php.

33 : EditFormInterface {
34 $md = $this->initMetaData($type, $id, $subtype, $sub_id, \ilAdvancedMDRecordGUI::MODE_EDITOR);
35 return new EditForm($md, false, $form_action, $submit_command, $submit_label);
36 }

◆ initMetaData()

ILIAS\EmployeeTalk\Metadata\MetadataHandler::initMetaData ( string  $type,
int  $id,
string  $subtype,
int  $sub_id,
int  $mode 
)
protected

Definition at line 110 of file MetadataHandler.php.

117 $md = new \ilAdvancedMDRecordGUI(
118 $mode,
119 $type,
120 $id,
121 $subtype,
122 $sub_id,
123 false
124 );
125 return $md;
126 }

◆ saveSelectionFromForm()

ILIAS\EmployeeTalk\Metadata\MetadataHandler::saveSelectionFromForm ( string  $type,
int  $id,
string  $subtype,
int  $sub_id,
\ilPropertyFormGUI  $form 
)

Implements ILIAS\EmployeeTalk\Metadata\MetadataHandlerInterface.

Definition at line 98 of file MetadataHandler.php.

104 : void {
105 $md = $this->initMetaData($type, $id, $subtype, $sub_id, \ilAdvancedMDRecordGUI::MODE_REC_SELECTION);
106 $md->setPropertyForm($form);
107 $md->saveSelection();
108 }

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