5 include_once(
"./Services/Form/classes/class.ilFormPropertyGUI.php");
6 include_once(
'Services/MetaData/classes/class.ilMDSettings.php');
7 include_once(
'Services/MetaData/classes/class.ilMDRights.php');
36 $this->lng->loadLanguageModule(
"meta");
38 parent::__construct($a_title, $a_postvar);
50 $this->value = $a_value;
70 $this->cols = $a_cols;
90 $this->rows = $a_rows;
124 if ($this->usePurifier() && $this->getPurifier()) {
138 include_once(
'Services/MetaData/classes/class.ilMDCopyrightSelectionEntry.php');
140 $ttpl =
new ilTemplate(
"tpl.prop_copyright.html",
true,
true,
"Services/MetaData");
142 $use_selection = ($this->
settings->isCopyrightSelectionActive() && count($entries));
145 if ($use_selection) {
148 include_once(
'Services/MetaData/classes/class.ilMDCopyrightSelectionEntry.php');
150 foreach ($entries as $entry) {
151 $ttpl->setCurrentBlock(
'copyright_selection');
153 if ($entry->getEntryId() == $default_id) {
155 $ttpl->setVariable(
'COPYRIGHT_CHECKED',
'checked="checked"');
157 $ttpl->setVariable(
'COPYRIGHT_ID', $entry->getEntryId());
158 $ttpl->setVariable(
'COPYRIGHT_TITLE', $entry->getTitle());
159 $ttpl->setVariable(
'COPYRIGHT_DESCRIPTION', $entry->getDescription());
160 $ttpl->setVariable(
'SPOST_VAR', $this->
getPostVar());
161 $ttpl->parseCurrentBlock();
164 $ttpl->setCurrentBlock(
'copyright_selection');
166 $ttpl->setVariable(
'COPYRIGHT_CHECKED',
'checked="checked"');
168 $ttpl->setVariable(
'COPYRIGHT_ID', 0);
169 $ttpl->setVariable(
'COPYRIGHT_TITLE', $this->lng->txt(
'meta_cp_own'));
170 $ttpl->setVariable(
'SPOST_VAR', $this->
getPostVar());
172 $ttpl->parseCurrentBlock();
177 $ttpl->setCurrentBlock(
"prop_ta_c");
178 $ttpl->setVariable(
"COLS", $this->
getCols());
179 $ttpl->parseCurrentBlock();
181 $ttpl->touchBlock(
"prop_ta_w");
184 $ttpl->setCurrentBlock(
"prop_copyright");
185 $ttpl->setVariable(
"ROWS", $this->
getRows());
192 $ttpl->setVariable(
"ID", $this->
getFieldId());
194 $ttpl->setVariable(
'DISABLED',
'disabled="disabled" ');
204 if (!$use_selection || !$found) {
207 $ttpl->parseCurrentBlock();
210 $a_tpl->setCurrentBlock(
"prop_generic");
211 $a_tpl->setVariable(
"PROP_GENERIC", $ttpl->get());
212 $a_tpl->parseCurrentBlock();
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
static _getEntries()
get entries
static _getInstance()
get instance
special template class to simplify handling of ITX/PEAR
static _extractEntryId($a_cp_string)
extract entry id
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled