18 declare(strict_types=1);
38 $this->md = $dic->learningObjectMetadata();
44 return $this->context_collection->
repository();
49 if ($screen_context_stack->
current()->hasReferenceId()) {
50 $object_id = $screen_context_stack->
current()->getReferenceId()->toObjectId()->toInt();
51 $paths = $this->md->paths();
56 foreach ($reader->allData($paths->keywords()) as $keyword) {
57 $keywords[] = $keyword->value();
59 if (count($keywords) > 0) {
61 $this->data->htmlMetadata()->userDefined(
'keywords', implode(
',', $keywords))
67 foreach ($reader->allData($paths->languages()) as $language) {
68 $languages[] = $language->value();
70 if (count($languages) > 0) {
72 $this->data->htmlMetadata()->userDefined(
'languages', implode(
',', $languages))
77 if ($this->md->copyrightHelper()->isCopyrightSelectionActive()) {
79 if ($this->md->copyrightHelper()->hasPresetCopyright($reader)) {
80 $copyright = $this->md->copyrightHelper()->readPresetCopyright($reader)->presentAsString();
82 $copyright = $this->md->copyrightHelper()->readCustomCopyright($reader);
85 $this->data->htmlMetadata()->userDefined(
'copyright', $copyright)
95 $path = $this->md->paths()->custom()->withNextStep(
'general')->get();
96 return $this->md->read(
106 $path = $this->md->paths()->custom()
107 ->withNextStep(
'rights')
108 ->withNextStep(
'description')
109 ->withNextStep(
'string')
111 return $this->md->read(
copyrightReader(int $object_id)
Interface Observer Contains several chained tasks and infos about them.
__construct(\ILIAS\DI\Container $dic)
Class ContentModification.
Class AbstractModificationProvider.
generalReader(int $object_id)
getContentModification(CalledContexts $screen_context_stack)
Class ilMDKeywordExposer.
__construct(Container $dic, ilPlugin $plugin)
static _lookupType(int $id, bool $reference=false)