ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
RepositoryInterface.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
28
30{
43 public function getMD(
44 int $obj_id,
45 int $sub_id,
46 string $type
47 ): SetInterface;
48
59 public function getMDOnPath(
61 int $obj_id,
62 int $sub_id,
63 string $type
64 ): SetInterface;
65
72 public function searchMD(
73 ClauseInterface $clause,
74 ?int $limit,
75 ?int $offset,
76 FilterInterface ...$filters
77 ): \Generator;
78
87 public function manipulateMD(SetInterface $set): void;
88
100 public function transferMD(
101 SetInterface $from_set,
102 int $to_obj_id,
103 int $to_sub_id,
104 string $to_type,
105 bool $throw_error_if_invalid
106 ): void;
107
108 public function deleteAllMD(
109 int $obj_id,
110 int $sub_id,
111 string $type
112 ): void;
113}
searchMD(ClauseInterface $clause, ?int $limit, ?int $offset, FilterInterface ... $filters)
Results are always ordered first by obj_id, then sub_id, then type.
transferMD(SetInterface $from_set, int $to_obj_id, int $to_sub_id, string $to_type, bool $throw_error_if_invalid)
Transfers a metadata set to an object, regardless of its source.
getMDOnPath(PathInterface $path, int $obj_id, int $sub_id, string $type)
Returns an MD set with only the elements specified on a path, and all nested subelements of the last ...
manipulateMD(SetInterface $set)
Follows a trail of markers from the root element, and creates, updates or deletes marked MD elements ...
deleteAllMD(int $obj_id, int $sub_id, string $type)
getMD(int $obj_id, int $sub_id, string $type)
$path
Definition: ltiservices.php:30