ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
CopyrightHelperInterface.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
26
28{
34 public function isCopyrightSelectionActive(): bool;
35
45 public function hasPresetCopyright(ReaderInterface $reader): bool;
46
57
66 public function readCustomCopyright(ReaderInterface $reader): string;
67
77 ManipulatorInterface $manipulator,
78 string $copyright_id
80
90 ManipulatorInterface $manipulator,
91 string $custom_copyright
93
99 public function getCopyrightPreset(string $copyright_id): CopyrightInterface;
100
110 public function getAllCopyrightPresets(): \Generator;
111
121 public function getNonOutdatedCopyrightPresets(): \Generator;
122
131 string $first_copyright_id,
132 string ...$further_copyright_ids
133 ): SearchClause;
134}
getAllCopyrightPresets()
Returns all preset copyright entries, or nothing if copyright selection is not active.
getCopyrightPreset(string $copyright_id)
Returns the preset copyright entry with the given identifier, or a null object if copyright selection...
getCopyrightSearchClause(string $first_copyright_id, string ... $further_copyright_ids)
Get a search clause that finds object with one of the given copyright entries in their LOM,...
prepareCreateOrUpdateOfCustomCopyright(ManipulatorInterface $manipulator, string $custom_copyright)
The given copyright information is set to be written to the LOM of the manipulator's object.
readCustomCopyright(ReaderInterface $reader)
Returns the custom copyright information from the LOM of the reader's object.
getNonOutdatedCopyrightPresets()
Returns all preset copyright entries that are not marked as outdated, or nothing if copyright selecti...
readPresetCopyright(ReaderInterface $reader)
If possible, returns the preset copyright selected for the reader's object.
hasPresetCopyright(ReaderInterface $reader)
Is the copyright in the LOM of the reader's object selected from the presets? If not,...
isCopyrightSelectionActive()
If copyright selection is not active, there are no copyright presets to choose from,...
prepareCreateOrUpdateOfCopyrightFromPreset(ManipulatorInterface $manipulator, string $copyright_id)
The preset copyright with the given identifier is set to be selected for the manipulator's object.