17 return $this->context_collection->
repository();
22 if ($screen_context_stack->
current()->hasReferenceId()) {
23 $object_id = $screen_context_stack->
current()->getReferenceId()->toObjectId()->toInt();
25 if ($general = $this->
getGeneral($object_id)) {
28 foreach ($general->getKeywordIds() as $keyword_id) {
29 $keyword = $general->getKeyword($keyword_id);
30 $keywords[] = $keyword->getKeyword();
35 if (count($keywords) > 0) {
36 $this->
globalScreen()->layout()->meta()->addMetaDatum(
'keywords', implode($delimiter, $keywords));
40 foreach ($general->getLanguageIds() as $language_id) {
41 $language = $general->getLanguage($language_id);
42 $languages[] = $language->getLanguageCode();
44 if (count($languages) > 0) {
45 $this->
globalScreen()->layout()->meta()->addMetaDatum(
'languages', implode($delimiter, $languages));
49 if ($rights = $this->
getRights($object_id)) {
52 if ($copy_right_id > 0) {
54 $this->
globalScreen()->layout()->meta()->addMetaDatum(
'copyright', $entry->getTitle());
getGeneral(int $object_id)
static _getId($a_rbac_id, $a_obj_id)
Class ContentModification.
static _getInstance()
get instance
Class AbstractModificationProvider.
getRights(int $object_id)
static _extractEntryId($a_cp_string)
extract entry id
getContentModification(CalledContexts $screen_context_stack)
Class ilMDKeywordExposer.
static _getId($a_rbac_id, $a_obj_id)