ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilQuestionPoolExportTableGUI.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2014 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
13{
21 public function __construct($a_parent_obj, $a_parent_cmd, $a_exp_obj)
22 {
23 parent::__construct($a_parent_obj, $a_parent_cmd, $a_exp_obj);
24
25 // NOT REQUIRED ANYMORE, PROBLEM NOW FIXED IN THE ROOT
26 // KEEP CODE, JF OPINIONS / ROOT FIXINGS CAN CHANGE
27 //$this->addCustomColumn($this->lng->txt('actions'), $this, 'formatActionsList');
28 }
29
34 protected function formatActionsList($type, $filename)
35 {
39 global $DIC;
40 $ilCtrl = $DIC['ilCtrl'];
41
42 $list = new ilAdvancedSelectionListGUI();
43 $list->setListTitle($this->lng->txt('actions'));
44 $ilCtrl->setParameter($this->getParentObject(), 'file', $type . ':' . $filename);
45 $list->addItem($this->lng->txt('download'), '', $ilCtrl->getLinkTarget($this->getParentObject(), 'download'));
46 $ilCtrl->setParameter($this->getParentObject(), 'file', '');
47 return $list->getHTML();
48 }
49
53 public function numericOrdering($a_field)
54 {
55 if (in_array($a_field, array('size', 'date'))) {
56 return true;
57 }
58
59 return false;
60 }
61
62 /***
63 *
64 */
65 protected function initMultiCommands()
66 {
67 $this->addMultiCommand('confirmDeletion', $this->lng->txt('delete'));
68 }
69}
$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.
Class ilQuestionPoolExportTableGUI.
__construct($a_parent_obj, $a_parent_cmd, $a_exp_obj)
Constructor.
numericOrdering($a_field)
Should this field be sorted numeric?boolean numeric ordering; default is false
getParentObject()
Get parent object.
addMultiCommand($a_cmd, $a_text)
Add Command button.
global $ilCtrl
Definition: ilias.php:18
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
$type
$DIC
Definition: xapitoken.php:46