ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
NullCopyrightHelper.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
27
29{
30 public function isCopyrightSelectionActive(): bool
31 {
32 return false;
33 }
34
35 public function hasPresetCopyright(ReaderInterface $reader): bool
36 {
37 return false;
38 }
39
41 {
42 return new NullCopyright();
43 }
44
45 public function readCustomCopyright(ReaderInterface $reader): string
46 {
47 return '';
48 }
49
51 ManipulatorInterface $manipulator,
52 string $copyright_id
54 return $manipulator;
55 }
56
58 ManipulatorInterface $manipulator,
59 string $custom_copyright
61 return $manipulator;
62 }
63
67 public function getAllCopyrightPresets(): \Generator
68 {
69 yield from [];
70 }
71
75 public function getNonOutdatedCopyrightPresets(): \Generator
76 {
77 yield from [];
78 }
79
80 public function getCopyrightSearchClause(
81 string $first_copyright_id,
82 string ...$further_copyright_ids
83 ): SearchClause {
84 return new NullClause();
85 }
86}
hasPresetCopyright(ReaderInterface $reader)
Is the copyright in the LOM of the reader's object selected from the presets? If not,...
readPresetCopyright(ReaderInterface $reader)
If possible, returns the preset copyright selected for the reader's object.
prepareCreateOrUpdateOfCopyrightFromPreset(ManipulatorInterface $manipulator, string $copyright_id)
The preset copyright with the given identifier is set to be selected for the manipulator's object.
readCustomCopyright(ReaderInterface $reader)
Returns the custom copyright information from the LOM of the reader's object.
prepareCreateOrUpdateOfCustomCopyright(ManipulatorInterface $manipulator, string $custom_copyright)
The given copyright information is set to be written to the LOM of the manipulator's object.
isCopyrightSelectionActive()
If copyright selection is not active, there are no copyright presets to choose from,...
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,...
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...