ILIAS
trunk Revision v11.0_alpha-1761-g6dbbfa7b760
|
Public Member Functions | |
__construct (RessourceIDFactoryInterface $ressource_factory, DatabaseManipulatorInterface $manipulator, DatabaseReaderInterface $reader, DatabaseSearcherInterface $searcher, ProcessorInterface $processor, IdentifierHandlerInterface $identifier_handler) | |
getMD (int $obj_id, int $sub_id, string $type) | |
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 elements on the path. More... | |
searchMD (ClauseInterface $clause, ?int $limit, ?int $offset, FilterInterface ... $filters) | |
manipulateMD (SetInterface $set) | |
Follows a trail of markers from the root element, and creates, updates or deletes marked MD elements along the trail. More... | |
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. More... | |
deleteAllMD (int $obj_id, int $sub_id, string $type) | |
Definition at line 35 of file LOMDatabaseRepository.php.
ILIAS\MetaData\Repository\LOMDatabaseRepository::__construct | ( | RessourceIDFactoryInterface | $ressource_factory, |
DatabaseManipulatorInterface | $manipulator, | ||
DatabaseReaderInterface | $reader, | ||
DatabaseSearcherInterface | $searcher, | ||
ProcessorInterface | $processor, | ||
IdentifierHandlerInterface | $identifier_handler | ||
) |
Definition at line 44 of file LOMDatabaseRepository.php.
References ILIAS\MetaData\Repository\LOMDatabaseRepository\$identifier_handler, ILIAS\MetaData\Repository\LOMDatabaseRepository\$manipulator, ILIAS\MetaData\Repository\LOMDatabaseRepository\$processor, ILIAS\MetaData\Repository\LOMDatabaseRepository\$reader, ILIAS\MetaData\Repository\LOMDatabaseRepository\$ressource_factory, and ILIAS\MetaData\Repository\LOMDatabaseRepository\$searcher.
ILIAS\MetaData\Repository\LOMDatabaseRepository::deleteAllMD | ( | int | $obj_id, |
int | $sub_id, | ||
string | $type | ||
) |
Implements ILIAS\MetaData\Repository\RepositoryInterface.
Definition at line 123 of file LOMDatabaseRepository.php.
ILIAS\MetaData\Repository\LOMDatabaseRepository::getMD | ( | int | $obj_id, |
int | $sub_id, | ||
string | $type | ||
) |
Implements ILIAS\MetaData\Repository\RepositoryInterface.
Definition at line 60 of file LOMDatabaseRepository.php.
ILIAS\MetaData\Repository\LOMDatabaseRepository::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 elements on the path.
The path must start from the root element. Note that path filters are ignored, and if the path contains steps to super elements, it is only followed down to the first element that the path returns to. Note that resulting partial MD sets might not be completely valid, due to conditions between elements. Be careful when dealing with vocabularies, or Technical > Requirement > OrComposite.
Implements ILIAS\MetaData\Repository\RepositoryInterface.
Definition at line 72 of file LOMDatabaseRepository.php.
ILIAS\MetaData\Repository\LOMDatabaseRepository::manipulateMD | ( | SetInterface | $set | ) |
Follows a trail of markers from the root element, and creates, updates or deletes marked MD elements along the trail.
Non-scaffold elements with 'create or update' markers are updated, and scaffold elements with 'create or update' markers are created with the data value on the marker. Stops when encountering a neutral marker on a scaffold.
Implements ILIAS\MetaData\Repository\RepositoryInterface.
Definition at line 98 of file LOMDatabaseRepository.php.
ILIAS\MetaData\Repository\LOMDatabaseRepository::searchMD | ( | ClauseInterface | $clause, |
?int | $limit, | ||
?int | $offset, | ||
FilterInterface ... | $filters | ||
) |
Implements ILIAS\MetaData\Repository\RepositoryInterface.
Definition at line 89 of file LOMDatabaseRepository.php.
References ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines\from().
ILIAS\MetaData\Repository\LOMDatabaseRepository::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.
Takes The data from 'create or update' markers takes priority over the data carried by marked elements, but 'delete' markers and unmarked or neutrally marked scaffolds are ignored. Always deletes whatever metadata already exist at the target.
If $throw_error_if_invalid is set true, an error is thrown if the markers on the $from_set are invalid, otherwise the invalid markers are replaced by neutral markers.
Implements ILIAS\MetaData\Repository\RepositoryInterface.
Definition at line 104 of file LOMDatabaseRepository.php.
|
protected |
Definition at line 42 of file LOMDatabaseRepository.php.
Referenced by ILIAS\MetaData\Repository\LOMDatabaseRepository\__construct().
|
protected |
Definition at line 38 of file LOMDatabaseRepository.php.
Referenced by ILIAS\MetaData\Repository\LOMDatabaseRepository\__construct().
|
protected |
Definition at line 41 of file LOMDatabaseRepository.php.
Referenced by ILIAS\MetaData\Repository\LOMDatabaseRepository\__construct().
|
protected |
Definition at line 39 of file LOMDatabaseRepository.php.
Referenced by ILIAS\MetaData\Repository\LOMDatabaseRepository\__construct().
|
protected |
Definition at line 37 of file LOMDatabaseRepository.php.
Referenced by ILIAS\MetaData\Repository\LOMDatabaseRepository\__construct().
|
protected |
Definition at line 40 of file LOMDatabaseRepository.php.
Referenced by ILIAS\MetaData\Repository\LOMDatabaseRepository\__construct().