33 include_once(
'Services/Table/classes/class.ilTable2GUI.php');
54 $this->
addColumn($this->lng->txt(
'md_adv_records'),
'records',
"33%");
55 $this->
addColumn($this->lng->txt(
'date'),
'date',
"33%");
56 $this->
addColumn($this->lng->txt(
'filesize'),
'file_size',
"33%");
58 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj));
59 $this->
setRowTemplate(
"tpl.edit_files_row.html",
"Services/AdvancedMetaData");
74 $this->tpl->setVariable(
'VAL_ID',$a_set[
'id']);
75 $this->tpl->setVariable(
'VAL_SIZE',sprintf(
"%.1f KB",$a_set[
'file_size']/1024));
78 foreach($a_set[
'record_arr'] as
$title)
80 $this->tpl->setCurrentBlock(
'record_title');
81 $this->tpl->setVariable(
'REC_TITLE',$title);
82 $this->tpl->parseCurrentBlock();
94 foreach($a_file_data as $id =>
$data)
97 $tmp_arr[
'records'] = implode(
', ',
$data[
'name']);
98 $tmp_arr[
'date'] =
$data[
'date'];
99 $tmp_arr[
'file_size'] =
$data[
'size'].
' '.$this->lng->txt(
'bytes');
100 $tmp_arr[
'record_arr'] =
$data[
'name'];
101 $defs_arr[] = $tmp_arr;
103 $this->
setData($defs_arr ? $defs_arr : array());