ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilTestExportTableGUI.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4require_once 'Services/Export/classes/class.ilExportTableGUI.php';
5require_once 'Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
6
16{
17 protected $counter;
18 protected $confirmdelete;
19
27 public function __construct($a_parent_obj, $a_parent_cmd, $a_exp_obj)
28 {
29 parent::__construct($a_parent_obj, $a_parent_cmd, $a_exp_obj);
30
31 // NOT REQUIRED ANYMORE, PROBLEM NOW FIXED IN THE ROOT
32 // KEEP CODE, JF OPINIONS / ROOT FIXINGS CAN CHANGE
33 //$this->addCustomColumn($this->lng->txt('actions'), $this, 'formatActionsList');
34 }
35
40 protected function formatActionsList($type, $filename)
41 {
45 global $ilCtrl;
46
47 $list = new ilAdvancedSelectionListGUI();
48 $list->setListTitle($this->lng->txt('actions'));
49 $ilCtrl->setParameter($this->getParentObject(), 'file', $filename);
50 $list->addItem($this->lng->txt('download'), '', $ilCtrl->getLinkTarget($this->getParentObject(), 'download'));
51 $ilCtrl->setParameter($this->getParentObject(), 'file', '');
52 return $list->getHTML();
53 }
54
55 /***
56 *
57 */
58 protected function initMultiCommands()
59 {
60 $this->addMultiCommand('confirmDeletion', $this->lng->txt('delete'));
61 }
62
66 public function getExportFiles()
67 {
68 return array();
69 }
70
74 protected function initColumns()
75 {
76 $this->addColumn($this->lng->txt(''), '', '1', true);
77 $this->addColumn($this->lng->txt('file'), 'file');
78 $this->addColumn($this->lng->txt('size'), 'size');
79 $this->addColumn($this->lng->txt('date'), 'timestamp');
80 }
81
86 public function numericOrdering($column)
87 {
88 if(in_array($column, array('size', 'date')))
89 {
90 return true;
91 }
92
93 return false;
94 }
95
100 protected function getRowId(array $row)
101 {
102 return $row['file'];
103 }
104}
$filename
Definition: buildRTE.php:89
User interface class for advanced drop-down selection lists.
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.
getParentObject()
Get parent object.
addMultiCommand($a_cmd, $a_text)
Add Command button.
__construct($a_parent_obj, $a_parent_cmd, $a_exp_obj)
Constructor.
getExportFiles()
Overwrite method because data is passed from outside.
global $ilCtrl
Definition: ilias.php:18