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");
 
   48                 $this->value = $a_value;
 
   68                 $this->cols = $a_cols;
 
   88                 $this->rows = $a_rows;
 
  120                 if($this->usePurifier() && $this->getPurifier())
 
  135                 include_once(
'Services/MetaData/classes/class.ilMDCopyrightSelectionEntry.php');
 
  137                 $ttpl = 
new ilTemplate(
"tpl.prop_copyright.html", 
true, 
true, 
"Services/MetaData");
 
  139                 $use_selection = ($this->settings->isCopyrightSelectionActive() && count($entries));
 
  146                         include_once(
'Services/MetaData/classes/class.ilMDCopyrightSelectionEntry.php');
 
  148                         foreach($entries as $entry)
 
  150                                 $ttpl->setCurrentBlock(
'copyright_selection');
 
  152                                 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');
 
  167                                 $ttpl->setVariable(
'COPYRIGHT_CHECKED',
'checked="checked"');
 
  169                         $ttpl->setVariable(
'COPYRIGHT_ID',0);
 
  170                         $ttpl->setVariable(
'COPYRIGHT_TITLE',$this->lng->txt(
'meta_cp_own'));
 
  171                         $ttpl->setVariable(
'SPOST_VAR', $this->
getPostVar());
 
  173                         $ttpl->parseCurrentBlock();
 
  179                         $ttpl->setCurrentBlock(
"prop_ta_c");
 
  180                         $ttpl->setVariable(
"COLS", $this->
getCols());
 
  181                         $ttpl->parseCurrentBlock();
 
  185                         $ttpl->touchBlock(
"prop_ta_w");
 
  188                 $ttpl->setCurrentBlock(
"prop_copyright");
 
  189                 $ttpl->setVariable(
"ROWS", $this->
getRows());
 
  192                         $ttpl->setVariable(
"POST_VAR",
 
  195                 $ttpl->setVariable(
"ID", $this->
getFieldId());
 
  198                         $ttpl->setVariable(
'DISABLED',
'disabled="disabled" ');
 
  203                         $ttpl->setVariable(
"HIDDEN_INPUT",
 
  207                 if (!$use_selection || !$found)
 
  211                 $ttpl->parseCurrentBlock();
 
  214                 $a_tpl->setCurrentBlock(
"prop_generic");
 
  215                 $a_tpl->setVariable(
"PROP_GENERIC", $ttpl->get());
 
  216                 $a_tpl->parseCurrentBlock();