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');
34 $this->lng->loadLanguageModule(
"meta");
36 parent::__construct($a_title, $a_postvar);
48 $this->value = $a_value;
68 $this->cols = $a_cols;
88 $this->
rows = $a_rows;
120 if ($this->usePurifier() && $this->getPurifier()) {
134 include_once(
'Services/MetaData/classes/class.ilMDCopyrightSelectionEntry.php');
136 $ttpl =
new ilTemplate(
"tpl.prop_copyright.html",
true,
true,
"Services/MetaData");
138 $use_selection = ($this->
settings->isCopyrightSelectionActive() && count($entries));
141 if ($use_selection) {
144 include_once(
'Services/MetaData/classes/class.ilMDCopyrightSelectionEntry.php');
146 foreach ($entries as $entry) {
147 $ttpl->setCurrentBlock(
'copyright_selection');
149 if ($entry->getEntryId() == $default_id) {
151 $ttpl->setVariable(
'COPYRIGHT_CHECKED',
'checked="checked"');
153 $ttpl->setVariable(
'COPYRIGHT_ID', $entry->getEntryId());
154 $ttpl->setVariable(
'COPYRIGHT_TITLE', $entry->getTitle());
155 $ttpl->setVariable(
'COPYRIGHT_DESCRIPTION', $entry->getDescription());
156 $ttpl->setVariable(
'SPOST_VAR', $this->
getPostVar());
157 $ttpl->parseCurrentBlock();
160 $ttpl->setCurrentBlock(
'copyright_selection');
162 $ttpl->setVariable(
'COPYRIGHT_CHECKED',
'checked="checked"');
164 $ttpl->setVariable(
'COPYRIGHT_ID', 0);
165 $ttpl->setVariable(
'COPYRIGHT_TITLE', $this->lng->txt(
'meta_cp_own'));
166 $ttpl->setVariable(
'SPOST_VAR', $this->
getPostVar());
168 $ttpl->parseCurrentBlock();
173 $ttpl->setCurrentBlock(
"prop_ta_c");
174 $ttpl->setVariable(
"COLS", $this->
getCols());
175 $ttpl->parseCurrentBlock();
177 $ttpl->touchBlock(
"prop_ta_w");
180 $ttpl->setCurrentBlock(
"prop_copyright");
181 $ttpl->setVariable(
"ROWS", $this->
getRows());
188 $ttpl->setVariable(
"ID", $this->
getFieldId());
190 $ttpl->setVariable(
'DISABLED',
'disabled="disabled" ');
200 if (!$use_selection || !$found) {
203 $ttpl->parseCurrentBlock();
206 $a_tpl->setCurrentBlock(
"prop_generic");
207 $a_tpl->setVariable(
"PROP_GENERIC", $ttpl->get());
208 $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