ILIAS
trunk Revision v11.0_alpha-2645-g16283d3b3f8
◀ ilDoc Overview
CopyrightHelperInterface.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\MetaData\Services\CopyrightHelper
;
22
23
use
ILIAS\MetaData\Services\Reader\ReaderInterface
;
24
use
ILIAS\MetaData\Services\Manipulator\ManipulatorInterface
;
25
use
ILIAS\MetaData\Search\Clauses\ClauseInterface
as
SearchClause
;
26
27
interface
CopyrightHelperInterface
28
{
34
public
function
isCopyrightSelectionActive
(): bool;
35
45
public
function
hasPresetCopyright
(
ReaderInterface
$reader): bool;
46
56
public
function
readPresetCopyright
(
ReaderInterface
$reader):
CopyrightInterface
;
57
66
public
function
readCustomCopyright
(
ReaderInterface
$reader): string;
67
76
public
function
prepareCreateOrUpdateOfCopyrightFromPreset
(
77
ManipulatorInterface
$manipulator,
78
string
$copyright_id
79
):
ManipulatorInterface
;
80
89
public
function
prepareCreateOrUpdateOfCustomCopyright
(
90
ManipulatorInterface
$manipulator,
91
string
$custom_copyright
92
):
ManipulatorInterface
;
93
103
public
function
getAllCopyrightPresets
(): \Generator;
104
114
public
function
getNonOutdatedCopyrightPresets
(): \Generator;
115
123
public
function
getCopyrightSearchClause
(
124
string
$first_copyright_id,
125
string
...$further_copyright_ids
126
):
SearchClause
;
127
}
ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelperInterface\readCustomCopyright
readCustomCopyright(ReaderInterface $reader)
Returns the custom copyright information from the LOM of the reader's object.
ILIAS\MetaData\Services\CopyrightHelper
Definition:
Copyright.php:21
ILIAS\MetaData\Services\Reader\ReaderInterface
Definition:
ReaderInterface.php:26
ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelperInterface\hasPresetCopyright
hasPresetCopyright(ReaderInterface $reader)
Is the copyright in the LOM of the reader's object selected from the presets? If not, custom copyright information was entered manually.
ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelperInterface\readPresetCopyright
readPresetCopyright(ReaderInterface $reader)
If possible, returns the preset copyright selected for the reader's object.
ClauseInterface
ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelperInterface\isCopyrightSelectionActive
isCopyrightSelectionActive()
If copyright selection is not active, there are no copyright presets to choose from, but copyright information can still be added manually to the LOM of objects.
ILIAS\MetaData\Services\Manipulator\ManipulatorInterface
Definition:
ManipulatorInterface.php:25
ILIAS\MetaData\Services\CopyrightHelper\CopyrightInterface
Definition:
CopyrightInterface.php:27
ManipulatorInterface
ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelperInterface\prepareCreateOrUpdateOfCopyrightFromPreset
prepareCreateOrUpdateOfCopyrightFromPreset(ManipulatorInterface $manipulator, string $copyright_id)
The preset copyright with the given identifier is set to be selected for the manipulator's object...
ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelperInterface\getCopyrightSearchClause
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...
ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelperInterface\getNonOutdatedCopyrightPresets
getNonOutdatedCopyrightPresets()
Returns all preset copyright entries that are not marked as outdated, or nothing if copyright selecti...
ReaderInterface
ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelperInterface\getAllCopyrightPresets
getAllCopyrightPresets()
Returns all preset copyright entries, or nothing if copyright selection is not active.
ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelperInterface\prepareCreateOrUpdateOfCustomCopyright
prepareCreateOrUpdateOfCustomCopyright(ManipulatorInterface $manipulator, string $custom_copyright)
The given copyright information is set to be written to the LOM of the manipulator's object...
ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelperInterface
Definition:
CopyrightHelperInterface.php:27
components
ILIAS
MetaData
classes
Services
CopyrightHelper
CopyrightHelperInterface.php
Generated on Mon Sep 1 2025 23:03:33 for ILIAS by
1.8.13 (using
Doxyfile
)