ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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
103 public function getAllCopyrightPresets(): \Generator;
104
114 public function getNonOutdatedCopyrightPresets(): \Generator;
115
124 string $first_copyright_id,
125 string ...$further_copyright_ids
126 ): SearchClause;
127}
getAllCopyrightPresets()
Returns all preset copyright entries, or nothing if copyright selection is not active.
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.