|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
Inheritance diagram for ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelper:
Collaboration diagram for ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelper:Public Member Functions | |
| __construct (SettingsInterface $settings, PathFactory $path_factory, CopyrightRepository $copyright_repo, IdentifierHandler $identifier_handler, RendererInterface $renderer, SearchClauseFactory $search_clause_factory) | |
| 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. More... | |
| 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. More... | |
| readPresetCopyright (ReaderInterface $reader) | |
| If possible, returns the preset copyright selected for the reader's object. More... | |
| readCustomCopyright (ReaderInterface $reader) | |
| Returns the custom copyright information from the LOM of the reader's object. More... | |
| prepareCreateOrUpdateOfCopyrightFromPreset (ManipulatorInterface $manipulator, string $copyright_id) | |
| The preset copyright with the given identifier is set to be selected for the manipulator's object. More... | |
| prepareCreateOrUpdateOfCustomCopyright (ManipulatorInterface $manipulator, string $custom_copyright) | |
| The given copyright information is set to be written to the LOM of the manipulator's object. More... | |
| getCopyrightPreset (string $copyright_id) | |
| Returns the preset copyright entry with the given identifier, or a null object if copyright selection is not active (or if the identifier does not exist). More... | |
| getAllCopyrightPresets () | |
| getNonOutdatedCopyrightPresets () | |
| 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, to be used in {. More... | |
| 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. More... | |
| 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. More... | |
| readPresetCopyright (ReaderInterface $reader) | |
| If possible, returns the preset copyright selected for the reader's object. More... | |
| readCustomCopyright (ReaderInterface $reader) | |
| Returns the custom copyright information from the LOM of the reader's object. More... | |
| prepareCreateOrUpdateOfCopyrightFromPreset (ManipulatorInterface $manipulator, string $copyright_id) | |
| The preset copyright with the given identifier is set to be selected for the manipulator's object. More... | |
| prepareCreateOrUpdateOfCustomCopyright (ManipulatorInterface $manipulator, string $custom_copyright) | |
| The given copyright information is set to be written to the LOM of the manipulator's object. More... | |
| getCopyrightPreset (string $copyright_id) | |
| Returns the preset copyright entry with the given identifier, or a null object if copyright selection is not active (or if the identifier does not exist). More... | |
| getAllCopyrightPresets () | |
| Returns all preset copyright entries, or nothing if copyright selection is not active. More... | |
| getNonOutdatedCopyrightPresets () | |
| Returns all preset copyright entries that are not marked as outdated, or nothing if copyright selection is not active. More... | |
| 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, to be used in {. More... | |
Protected Member Functions | |
| prepareCreateOrUpdateOfCopyright (ManipulatorInterface $manipulator, string $value) | |
| getRawCopyright (ReaderInterface $reader) | |
| getCopyrightDescriptionPath () | |
| getCopyrightEntryWrapper (EntryInterface $entry) | |
| getNullCopyrightEntryWrapper () | |
Protected Attributes | |
| SettingsInterface | $settings |
| PathFactory | $path_factory |
| IdentifierHandler | $identifier_handler |
| CopyrightRepository | $copyright_repo |
| RendererInterface | $renderer |
| SearchClauseFactory | $search_clause_factory |
Definition at line 37 of file CopyrightHelper.php.
| ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelper::__construct | ( | SettingsInterface | $settings, |
| PathFactory | $path_factory, | ||
| CopyrightRepository | $copyright_repo, | ||
| IdentifierHandler | $identifier_handler, | ||
| RendererInterface | $renderer, | ||
| SearchClauseFactory | $search_clause_factory | ||
| ) |
Definition at line 46 of file CopyrightHelper.php.
References ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelper\$copyright_repo, ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelper\$identifier_handler, ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelper\$path_factory, ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelper\$renderer, ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelper\$search_clause_factory, ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelper\$settings, renderer(), and ILIAS\Repository\settings().
Referenced by ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelperTest\getClauseFactory(), ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelperTest\getCopyrightEntry(), ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelperTest\getCopyrightHelper(), ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelperTest\getPathFactory(), ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelperTest\getReader(), and ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelperTest\getSettings().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelper::getAllCopyrightPresets | ( | ) |
Implements ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelperInterface.
Definition at line 141 of file CopyrightHelper.php.
|
protected |
Definition at line 219 of file CopyrightHelper.php.
|
protected |
Definition at line 228 of file CopyrightHelper.php.
References renderer().
Referenced by ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelper\readPresetCopyright().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelper::getCopyrightPreset | ( | string | $copyright_id | ) |
Returns the preset copyright entry with the given identifier, or a null object if copyright selection is not active (or if the identifier does not exist).
Implements ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelperInterface.
Definition at line 130 of file CopyrightHelper.php.
| ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelper::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, to be used in {.
If copyright selection is active, objects without any copyright information are treated as if they had the default copyright.
Implements ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelperInterface.
Definition at line 166 of file CopyrightHelper.php.
| ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelper::getNonOutdatedCopyrightPresets | ( | ) |
Implements ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelperInterface.
Definition at line 155 of file CopyrightHelper.php.
|
protected |
Definition at line 237 of file CopyrightHelper.php.
Referenced by ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelper\readPresetCopyright().
Here is the caller graph for this function:
|
protected |
Definition at line 214 of file CopyrightHelper.php.
References ILIAS\MetaData\Services\Reader\ReaderInterface\firstData().
Referenced by ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelper\hasPresetCopyright(), ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelper\readCustomCopyright(), and ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelper\readPresetCopyright().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelper::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.
If no copyright is assigned to the object, it is treated like it has the default copyright licence, and true is returned here.
Always returns false if copyright selection is not active.
Implements ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelperInterface.
Definition at line 67 of file CopyrightHelper.php.
References ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelper\getRawCopyright(), and ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelper\isCopyrightSelectionActive().
Here is the call graph for this function:| ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelper::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.
Implements ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelperInterface.
Definition at line 62 of file CopyrightHelper.php.
References ILIAS\Repository\settings().
Referenced by ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelperTest\getSettings(), ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelper\hasPresetCopyright(), ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelper\readCustomCopyright(), and ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelper\readPresetCopyright().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 204 of file CopyrightHelper.php.
| ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelper::prepareCreateOrUpdateOfCopyrightFromPreset | ( | ManipulatorInterface | $manipulator, |
| string | $copyright_id | ||
| ) |
The preset copyright with the given identifier is set to be selected for the manipulator's object.
Note that this will also overwrite custom copyright information.
Call {
Implements ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelperInterface.
Definition at line 116 of file CopyrightHelper.php.
| ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelper::prepareCreateOrUpdateOfCustomCopyright | ( | ManipulatorInterface | $manipulator, |
| string | $custom_copyright | ||
| ) |
The given copyright information is set to be written to the LOM of the manipulator's object.
Note that this will also overwrite any selected preset copyright.
Call {
Implements ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelperInterface.
Definition at line 123 of file CopyrightHelper.php.
| ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelper::readCustomCopyright | ( | ReaderInterface | $reader | ) |
Returns the custom copyright information from the LOM of the reader's object.
If copyright selection is inactive, or one of the preset copyright options was selected for the object, this returns an empty string.
Implements ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelperInterface.
Definition at line 103 of file CopyrightHelper.php.
References ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelper\getRawCopyright(), and ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelper\isCopyrightSelectionActive().
Here is the call graph for this function:| ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelper::readPresetCopyright | ( | ReaderInterface | $reader | ) |
If possible, returns the preset copyright selected for the reader's object.
For objects which have no copyright information in their LOM, the default copyright is returned (as long as copyright selection is active).
Returns a null object if copyright selection is not active, or if the object has custom copyright information.
Implements ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelperInterface.
Definition at line 81 of file CopyrightHelper.php.
References ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelper\getCopyrightEntryWrapper(), ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelper\getNullCopyrightEntryWrapper(), ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelper\getRawCopyright(), and ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelper\isCopyrightSelectionActive().
Here is the call graph for this function:
|
protected |
Definition at line 42 of file CopyrightHelper.php.
Referenced by ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelper\__construct().
|
protected |
Definition at line 41 of file CopyrightHelper.php.
Referenced by ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelper\__construct().
|
protected |
Definition at line 40 of file CopyrightHelper.php.
Referenced by ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelper\__construct().
|
protected |
Definition at line 43 of file CopyrightHelper.php.
Referenced by ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelper\__construct().
|
protected |
Definition at line 44 of file CopyrightHelper.php.
Referenced by ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelper\__construct().
|
protected |
Definition at line 39 of file CopyrightHelper.php.
Referenced by ILIAS\MetaData\Services\CopyrightHelper\CopyrightHelper\__construct().