ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
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)
 

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.

References ILIAS\EmployeeTalk\Metadata\MetadataHandler\initMetaData(), and ilAdvancedMDRecordGUI\MODE_REC_SELECTION.

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

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

References ilAdvancedMDValues\_cloneValues(), ilAdvancedMDRecord\_getSelectedRecordsByObject(), ilAdvancedMDRecord\getObjRecSelection(), and ilAdvancedMDRecord\saveObjRecSelection().

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,
75  \ilAdvancedMDRecord::getObjRecSelection($from_id, $subtype)
76  );
77 
79  0,
80  $from_id,
81  $to_id,
82  $subtype
83  );
84  }
static _getSelectedRecordsByObject(string $a_obj_type, int $a_id, string $a_sub_type="", bool $is_ref_id=true)
static getObjRecSelection(int $a_obj_id, string $a_sub_type="")
Get repository object record selection.
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.
+ Here is the call graph for this function:

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

References ILIAS\EmployeeTalk\Metadata\MetadataHandler\initMetaData(), and ilAdvancedMDRecordGUI\MODE_EDITOR.

43  : EditFormInterface {
44  $md = $this->initMetaData($type, $id, $subtype, $sub_id, \ilAdvancedMDRecordGUI::MODE_EDITOR);
45  return new EditForm($md, true, '', '', '');
46  }
initMetaData(string $type, int $id, string $subtype, int $sub_id, int $mode)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
+ Here is the call graph for this function:

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

References ILIAS\EmployeeTalk\Metadata\MetadataHandler\initMetaData(), and ilAdvancedMDRecordGUI\MODE_EDITOR.

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(string $type, int $id, string $subtype, int $sub_id, int $mode)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
+ Here is the call graph for this function:

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

Referenced by ILIAS\EmployeeTalk\Metadata\MetadataHandler\attachSelectionToForm(), ILIAS\EmployeeTalk\Metadata\MetadataHandler\getDisabledEditForm(), ILIAS\EmployeeTalk\Metadata\MetadataHandler\getEditForm(), and ILIAS\EmployeeTalk\Metadata\MetadataHandler\saveSelectionFromForm().

117  $md = new \ilAdvancedMDRecordGUI(
118  $mode,
119  $type,
120  $id,
121  $subtype,
122  $sub_id,
123  false
124  );
125  return $md;
126  }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
+ Here is the caller graph for this function:

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

References ILIAS\EmployeeTalk\Metadata\MetadataHandler\initMetaData(), and ilAdvancedMDRecordGUI\MODE_REC_SELECTION.

104  : void {
105  $md = $this->initMetaData($type, $id, $subtype, $sub_id, \ilAdvancedMDRecordGUI::MODE_REC_SELECTION);
106  $md->setPropertyForm($form);
107  $md->saveSelection();
108  }
initMetaData(string $type, int $id, string $subtype, int $sub_id, int $mode)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
+ Here is the call graph for this function:

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