ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.MetadataManager.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24
26{
27 protected LOMServices $lom_services;
28
29 public function __construct(LOMServices $lom_services)
30 {
31 $this->lom_services = $lom_services;
32 }
33
34 public function cloneLOM(
35 int $source_obj_id,
36 int $source_sub_id,
37 string $source_type,
38 int $target_obj_id,
39 int $target_sub_id,
40 string $target_type
41 ): void {
42 $this->lom_services->derive()
43 ->fromObject($source_obj_id, $source_sub_id, $source_type)
44 ->forObject($source_obj_id, $source_sub_id, $source_type);
45 }
46}
cloneLOM(int $source_obj_id, int $source_sub_id, string $source_type, int $target_obj_id, int $target_sub_id, string $target_type)