◆ __construct()
ilMDCopyrightSelectionGUI::__construct |
( |
|
$a_mode, |
|
|
|
$a_rbac_id, |
|
|
|
$a_obj_id |
|
) |
| |
◆ fillTemplate()
ilMDCopyrightSelectionGUI::fillTemplate |
( |
| ) |
|
parse
public
Definition at line 77 of file class.ilMDCopyrightSelectionGUI.php.
References ilMDCopyrightSelectionEntry\_extractEntryId(), ilMDCopyrightSelectionEntry\_getEntries(), ilMDRights\_lookupDescription(), ilUtil\prepareFormOutput(), and settings().
79 include_once(
'Services/MetaData/classes/class.ilMDCopyrightSelectionEntry.php');
83 if (!$this->
settings->isCopyrightSelectionActive()
or 85 $this->tpl->setVariable(
"TXT_COPYRIGHT", $this->lng->txt(
'meta_copyright'));
86 $this->tpl->setVariable(
95 include_once(
'Services/MetaData/classes/class.ilMDCopyrightSelectionEntry.php');
97 foreach ($entries as $entry) {
98 $this->tpl->setCurrentBlock(
'copyright_selection');
100 if ($entry->getEntryId() == $default_id) {
102 $this->tpl->setVariable(
'COPYRIGHT_CHECKED',
'checked="checked"');
104 $this->tpl->setVariable(
'COPYRIGHT_ID', $entry->getEntryId());
105 $this->tpl->setVariable(
'COPYRIGHT_TITLE', $entry->getTitle());
106 $this->tpl->setVariable(
'COPYRIGHT_DESCRIPTION', $entry->getDescription());
107 $this->tpl->parseCurrentBlock();
110 $this->tpl->setCurrentBlock(
'copyright_selection');
112 $this->tpl->setVariable(
'COPYRIGHT_CHECKED',
'checked="checked"');
114 $this->tpl->setVariable(
'COPYRIGHT_ID', 0);
115 $this->tpl->setVariable(
'COPYRIGHT_TITLE', $this->lng->txt(
'meta_cp_own'));
117 $this->tpl->setVariable(
"TXT_COPYRIGHT", $this->lng->txt(
'meta_copyright'));
119 $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 _lookupDescription($a_rbac_id, $a_obj_id)
Lookup description (copyright)
static _extractEntryId($a_cp_string)
extract entry id
◆ $lng
ilMDCopyrightSelectionGUI::$lng |
|
protected |
◆ $mode
ilMDCopyrightSelectionGUI::$mode |
|
private |
◆ $obj_id
ilMDCopyrightSelectionGUI::$obj_id |
|
private |
◆ $rbac_id
ilMDCopyrightSelectionGUI::$rbac_id |
|
private |
◆ $settings
ilMDCopyrightSelectionGUI::$settings |
|
protected |
◆ $tpl
ilMDCopyrightSelectionGUI::$tpl |
|
protected |
◆ 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: