ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 $DIC;
46 $ilCtrl = $DIC['ilCtrl'];
47
49 $list->setListTitle($this->lng->txt('actions'));
50 $ilCtrl->setParameter($this->getParentObject(), 'file', $filename);
51 $list->addItem($this->lng->txt('download'), '', $ilCtrl->getLinkTarget($this->getParentObject(), 'download'));
52 $ilCtrl->setParameter($this->getParentObject(), 'file', '');
53 return $list->getHTML();
54 }
55
56 /***
57 *
58 */
59 protected function initMultiCommands()
60 {
61 $this->addMultiCommand('confirmDeletion', $this->lng->txt('delete'));
62 }
63
67 public function getExportFiles()
68 {
69 return array();
70 }
71
75 protected function initColumns()
76 {
77 $this->addColumn($this->lng->txt(''), '', '1', true);
78 $this->addColumn($this->lng->txt('file'), 'file');
79 $this->addColumn($this->lng->txt('size'), 'size');
80 $this->addColumn($this->lng->txt('date'), 'timestamp');
81 }
82
87 public function numericOrdering($column)
88 {
89 if (in_array($column, array('size', 'date'))) {
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
An exception for terminatinating execution or to throw for unit testing.
User interface class for advanced drop-down selection lists.
getParentObject()
Get parent object.
addMultiCommand($a_cmd, $a_text)
Add Command button.
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.
__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
$row
$type
if(isset($_REQUEST['delete'])) $list
Definition: registry.php:41
global $DIC
Definition: saml.php:7