33 include_once(
'Services/Table/classes/class.ilTable2GUI.php');
52 parent::__construct($a_parent_obj,$a_parent_cmd);
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;
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
static formatDate(ilDateTime $date)
Format a date public.
__construct($a_parent_obj, $a_parent_cmd='')
Constructor.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
parseFiles($a_file_data)
parese files
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
addColumn($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.