33 include_once(
'Services/MetaData/classes/class.ilMDSettings.php');
34 include_once(
'Services/MetaData/classes/class.ilMDRights.php');
61 $this->mode = $a_mode;
62 $this->rbac_id = $a_rbac_id;
63 $this->obj_id = $a_obj_id;
76 include_once(
'Services/MetaData/classes/class.ilMDCopyrightSelectionEntry.php');
80 if (!$this->
settings->isCopyrightSelectionActive() or
82 $this->tpl->setVariable(
"TXT_COPYRIGHT", $this->lng->txt(
'meta_copyright'));
83 $this->tpl->setVariable(
92 include_once(
'Services/MetaData/classes/class.ilMDCopyrightSelectionEntry.php');
94 foreach ($entries as $entry) {
95 $this->tpl->setCurrentBlock(
'copyright_selection');
97 if ($entry->getEntryId() == $default_id) {
99 $this->tpl->setVariable(
'COPYRIGHT_CHECKED',
'checked="checked"');
101 $this->tpl->setVariable(
'COPYRIGHT_ID', $entry->getEntryId());
102 $this->tpl->setVariable(
'COPYRIGHT_TITLE', $entry->getTitle());
103 $this->tpl->setVariable(
'COPYRIGHT_DESCRIPTION', $entry->getDescription());
104 $this->tpl->parseCurrentBlock();
107 $this->tpl->setCurrentBlock(
'copyright_selection');
109 $this->tpl->setVariable(
'COPYRIGHT_CHECKED',
'checked="checked"');
111 $this->tpl->setVariable(
'COPYRIGHT_ID', 0);
112 $this->tpl->setVariable(
'COPYRIGHT_TITLE', $this->lng->txt(
'meta_cp_own'));
114 $this->tpl->setVariable(
"TXT_COPYRIGHT", $this->lng->txt(
'meta_copyright'));
116 $this->tpl->setVariable(
'COPYRIGHT_VAL', $desc);
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
static _getEntries()
get entries
static _getInstance()
get instance
static _lookupDescription($a_rbac_id, $a_obj_id)
Lookup description (copyright)
static _extractEntryId($a_cp_string)
extract entry id
__construct($a_mode, $a_rbac_id, $a_obj_id)
Constructor.