18 declare(strict_types=1);
34 protected Metadata
$md;
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))
79 $copyright = $reader->firstData($paths->copyright())->value();
81 if ($copyright_id > 0) {
83 $copyright = $entry->getTitle();
85 if ($copyright ===
'') {
87 $copyright = $entry->getTitle();
90 $this->data->htmlMetadata()->userDefined(
'copyright', $copyright)
100 $path = $this->md->paths()->custom()->withNextStep(
'general')->get();
101 return $this->md->read(
111 $path = $this->md->paths()->custom()
112 ->withNextStep(
'rights')
113 ->withNextStep(
'description')
114 ->withNextStep(
'string')
116 return $this->md->read(
static _extractEntryId(string $a_cp_string)
copyrightReader(int $object_id)
Class ChatMainBarProvider .
__construct(\ILIAS\DI\Container $dic)
Class ContentModification.
Class AbstractModificationProvider.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
generalReader(int $object_id)
getContentModification(CalledContexts $screen_context_stack)
Class ilMDKeywordExposer.
static _lookupType(int $id, bool $reference=false)