3 declare(strict_types=1);
43 public function __construct(
int $a_mode,
int $a_rbac_id,
int $a_obj_id)
47 $this->
lng = $DIC->language();
48 $this->tpl = $DIC->ui()->mainTemplate();
50 $this->rbac_id = $a_rbac_id;
51 $this->obj_id = $a_obj_id;
60 if (!$this->
settings->isCopyrightSelectionActive() or
62 $this->tpl->setVariable(
"TXT_COPYRIGHT", $this->
lng->txt(
'meta_copyright'));
63 $this->tpl->setVariable(
73 foreach ($entries as $entry) {
74 $this->tpl->setCurrentBlock(
'copyright_selection');
76 if ($entry->getEntryId() === $default_id) {
78 $this->tpl->setVariable(
'COPYRIGHT_CHECKED',
'checked="checked"');
80 $this->tpl->setVariable(
'COPYRIGHT_ID', $entry->getEntryId());
81 $this->tpl->setVariable(
'COPYRIGHT_TITLE', $entry->getTitle());
82 $this->tpl->setVariable(
'COPYRIGHT_DESCRIPTION', $entry->getDescription());
83 $this->tpl->parseCurrentBlock();
86 $this->tpl->setCurrentBlock(
'copyright_selection');
88 $this->tpl->setVariable(
'COPYRIGHT_CHECKED',
'checked="checked"');
90 $this->tpl->setVariable(
'COPYRIGHT_ID', 0);
91 $this->tpl->setVariable(
'COPYRIGHT_TITLE', $this->
lng->txt(
'meta_cp_own'));
93 $this->tpl->setVariable(
"TXT_COPYRIGHT", $this->
lng->txt(
'meta_copyright'));
95 $this->tpl->setVariable(
'COPYRIGHT_VAL', $desc);
static _extractEntryId(string $a_cp_string)
static _lookupDescription(int $a_rbac_id, int $a_obj_id)
ilGlobalTemplateInterface $tpl
__construct(int $a_mode, int $a_rbac_id, int $a_obj_id)