◆ __construct()
ilMDCopyrightSelectionGUI::__construct |
( |
int |
$a_mode, |
|
|
int |
$a_rbac_id, |
|
|
int |
$a_obj_id |
|
) |
| |
◆ fillTemplate()
ilMDCopyrightSelectionGUI::fillTemplate |
( |
| ) |
|
Definition at line 56 of file class.ilMDCopyrightSelectionGUI.php.
References ilMDCopyrightSelectionEntry\_extractEntryId(), ilMDCopyrightSelectionEntry\_getEntries(), ilMDRights\_lookupDescription(), ILIAS\Repository\lng(), ilLegacyFormElementsUtil\prepareFormOutput(), and ILIAS\Repository\settings().
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)
◆ $lng
◆ $obj_id
int ilMDCopyrightSelectionGUI::$obj_id |
|
private |
◆ $rbac_id
int ilMDCopyrightSelectionGUI::$rbac_id |
|
private |
◆ $settings
◆ $tpl
◆ MODE_EDIT
const ilMDCopyrightSelectionGUI::MODE_EDIT = 2 |
◆ MODE_QUICKEDIT
const ilMDCopyrightSelectionGUI::MODE_QUICKEDIT = 1 |
The documentation for this class was generated from the following file: