34 include_once(
'Services/Table/classes/class.ilTable2GUI.php');
47 public function __construct($a_parent_obj, $a_parent_cmd =
'')
57 parent::__construct($a_parent_obj, $a_parent_cmd);
59 $this->
addColumn($this->lng->txt(
'filename'),
'filename',
"60%");
60 $this->
addColumn($this->lng->txt(
'filesize'),
'filesize',
"20%");
61 $this->
addColumn($this->lng->txt(
'filetype'),
'filetype',
"20%");
63 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj));
64 $this->
setRowTemplate(
"tpl.crs_info_file_row.html",
"Modules/Course");
78 $this->tpl->setVariable(
'VAL_ID', $a_set[
'id']);
79 $this->tpl->setVariable(
'VAL_FILENAME', $a_set[
'filename']);
80 $this->tpl->setVariable(
'VAL_FILETYPE', $a_set[
'filetype']);
81 $this->tpl->setVariable(
'VAL_FILESIZE', $a_set[
'filesize']);
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
__construct($a_parent_obj, $a_parent_cmd='')
Constructor.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
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.