ILIAS
trunk Revision v11.0_alpha-2645-g16283d3b3f8
◀ ilDoc Overview
RepositoryInterface.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\MetaData\Repository
;
22
23
use
ILIAS\MetaData\Elements\SetInterface
;
24
use
ILIAS\MetaData\Paths\PathInterface
;
25
use
ILIAS\MetaData\Elements\RessourceID\RessourceIDInterface
;
26
use
ILIAS\MetaData\Search\Clauses\ClauseInterface
;
27
use
ILIAS\MetaData\Search\Filters\FilterInterface
;
28
29
interface
RepositoryInterface
30
{
43
public
function
getMD
(
44
int
$obj_id,
45
int
$sub_id,
46
string
$type
47
):
SetInterface
;
48
59
public
function
getMDOnPath
(
60
PathInterface
$path
,
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
}
ILIAS\MetaData\Search\Filters\FilterInterface
Definition:
FilterInterface.php:23
ILIAS\MetaData\Repository\RepositoryInterface\getMD
getMD(int $obj_id, int $sub_id, string $type)
ILIAS\MetaData\Repository
ILIAS\MetaData\Repository\RepositoryInterface\searchMD
searchMD(ClauseInterface $clause, ?int $limit, ?int $offset, FilterInterface ... $filters)
Results are always ordered first by obj_id, then sub_id, then type.
ILIAS\MetaData\Paths\PathInterface
Definition:
PathInterface.php:25
ILIAS\MetaData\Repository\RepositoryInterface\manipulateMD
manipulateMD(SetInterface $set)
Follows a trail of markers from the root element, and creates, updates or deletes marked MD elements ...
ILIAS\MetaData\Repository\RepositoryInterface\deleteAllMD
deleteAllMD(int $obj_id, int $sub_id, string $type)
ClauseInterface
$path
$path
Definition:
ltiservices.php:29
RessourceIDInterface
SetInterface
ILIAS\MetaData\Elements\SetInterface
Definition:
SetInterface.php:26
ILIAS\MetaData\Repository\RepositoryInterface\transferMD
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.
ILIAS\MetaData\Search\Clauses\ClauseInterface
Definition:
ClauseInterface.php:26
FilterInterface
PathInterface
ILIAS\MetaData\Repository\RepositoryInterface
Definition:
RepositoryInterface.php:29
ILIAS\MetaData\Repository\RepositoryInterface\getMDOnPath
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 ...
components
ILIAS
MetaData
classes
Repository
RepositoryInterface.php
Generated on Mon Sep 1 2025 23:03:31 for ILIAS by
1.8.13 (using
Doxyfile
)