4include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
 
   22    public function __construct($a_parent_obj, $a_parent_cmd, $a_exp_obj)
 
   28        $ilAccess = 
$DIC[
'ilAccess'];
 
   31        $this->obj = $a_exp_obj;
 
   33        parent::__construct($a_parent_obj, $a_parent_cmd);
 
   44        $this->
setRowTemplate(
'tpl.export_table_row.html', 
'Services/Export');
 
   56        $this->
addColumn($this->lng->txt(
''), 
'', 
'1', 
true);
 
   57        $this->
addColumn($this->lng->txt(
'type'), 
'type');
 
   58        $this->
addColumn($this->lng->txt(
'file'), 
'file');
 
   59        $this->
addColumn($this->lng->txt(
'size'), 
'size');
 
   60        $this->
addColumn($this->lng->txt(
'date'), 
'timestamp');
 
   66        $this->
addColumn($this->lng->txt(
'actions'));
 
   87        $this->custom_columns[] = array(
'txt' => $a_txt,
 
  120        foreach ($this->parent_obj->getFormats() as 
$f) {
 
  121            $types[] = 
$f[
'key'];
 
  122            $this->formats[
$f[
'key']] = 
$f[
'txt'];
 
  124        include_once(
'./Services/Export/classes/class.ilExport.php');
 
  128            $this->obj->getType()
 
  143            $this->tpl->setCurrentBlock(
'custom');
 
  145            $this->tpl->setVariable(
'VAL_CUSTOM', 
$c[
'obj']->
$f($a_set[
'type'], $a_set[
'file']) . 
' ');
 
  146            $this->tpl->parseCurrentBlock();
 
  150        $this->tpl->setVariable(
'VAL_ID', $file_id);
 
  152        $type = ($this->formats[$a_set[
'type']] != 
"")
 
  153            ? $this->formats[$a_set[
'type']]
 
  155        $this->tpl->setVariable(
'VAL_TYPE', 
$type);
 
  156        $this->tpl->setVariable(
'VAL_FILE', $a_set[
'file']);
 
  160        $this->tpl->setVariable(
'TXT_DOWNLOAD', $this->lng->txt(
'download'));
 
  165        $this->tpl->setVariable(
'URL_DOWNLOAD', 
$url);
 
  174        return $row[
'type'] . 
':' . 
$row[
'file'];
 
An exception for terminatinating execution or to throw for unit testing.
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false, $include_seconds=false)
Format a date @access public.
@classDescription Date and time handling
addCustomColumn($a_txt, $a_obj, $a_func)
Add custom column.
__construct($a_parent_obj, $a_parent_cmd, $a_exp_obj)
Constructor.
addCustomMultiCommand($a_txt, $a_cmd)
Add custom multi command.
getCustomColumns()
Get custom columns.
prepareOutput()
Anything that must be done before HTML is generated.
getExportFiles()
Get export files.
static _getExportFiles($a_obj_id, $a_export_types="", $a_obj_type="")
Get Export Files for a repository object.
setEnableHeader($a_enableheader)
Set Enable Header.
getParentObject()
Get parent object.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setData($a_data)
set table data @access public
setRowTemplate($a_template, $a_template_dir="")
Set row template.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
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.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
static formatSize($size, $a_mode='short', $a_lng=null)
Returns the specified file size value in a human friendly form.