33 include_once(
'Services/Table/classes/class.ilTable2GUI.php');
45 public function __construct($a_parent_obj, $a_parent_cmd =
'')
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) {
79 $this->tpl->setCurrentBlock(
'record_title');
80 $this->tpl->setVariable(
'REC_TITLE', $title);
81 $this->tpl->parseCurrentBlock();
93 foreach ($a_file_data as
$id =>
$data) {
95 $tmp_arr[
'records'] = implode(
', ',
$data[
'name']);
96 $tmp_arr[
'date'] =
$data[
'date'];
97 $tmp_arr[
'file_size'] =
$data[
'size'] .
' ' . $this->lng->txt(
'bytes');
98 $tmp_arr[
'record_arr'] =
$data[
'name'];
99 $defs_arr[] = $tmp_arr;
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false)
Format a date public.
if(!array_key_exists('StateId', $_REQUEST)) $id
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
__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.