32 include_once(
'Services/Table/classes/class.ilTable2GUI.php');
 
   33 include_once(
'Services/MetaData/classes/class.ilMDCopyrightSelectionEntry.php');
 
   57                 $this->
addColumn($this->lng->txt(
'title'),
'title',
"30%");
 
   58                 $this->
addColumn($this->lng->txt(
'md_used'),
'used',
"5%");
 
   59                 $this->
addColumn($this->lng->txt(
'md_copyright_preview'),
'preview',
"50%");
 
   62                 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj));
 
   63                 $this->
setRowTemplate(
"tpl.show_copyright_row.html",
"Services/MetaData");
 
   77                 $this->tpl->setVariable(
'VAL_ID',$a_set[
'id']);
 
   78                 $this->tpl->setVariable(
'VAL_TITLE',$a_set[
'title']);
 
   79                 if(strlen($a_set[
'description']))
 
   81                         $this->tpl->setVariable(
'VAL_DESCRIPTION',$a_set[
'description']);
 
   83                 $this->tpl->setVariable(
'VAL_USAGE',$a_set[
'used']);
 
   84                 $this->tpl->setVariable(
'VAL_PREVIEW',$a_set[
'preview']);
 
   86                 $this->ctrl->setParameter($this->
getParentObject(),
'entry_id',$a_set[
'id']);
 
   87                 $this->tpl->setVariable(
'EDIT_LINK',$this->ctrl->getLinkTarget($this->getParentObject(),
'editEntry'));
 
   90                 $this->tpl->setVariable(
'TXT_EDIT',$this->lng->txt(
'edit'));
 
  108                         $tmp_arr[
'id'] = $entry->getEntryId();
 
  109                         $tmp_arr[
'title'] = $entry->getTitle();
 
  110                         $tmp_arr[
'description'] = $entry->getDescription();
 
  111                         $tmp_arr[
'used'] = $entry->getUsage();
 
  112                         $tmp_arr[
'preview'] = $entry->getCopyright();
 
  114                         $entry_arr[] = $tmp_arr;
 
  116                 $this->
setData($entry_arr ? $entry_arr : array());