ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 
4 require_once 'Services/Export/classes/class.ilExportTableGUI.php';
5 require_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 
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 }
if(isset($_REQUEST['delete'])) $list
Definition: registry.php:41
$type
Class ilQuestionPoolExportTableGUI.
global $DIC
Definition: saml.php:7
getParentObject()
Get parent object.
global $ilCtrl
Definition: ilias.php:18
addMultiCommand($a_cmd, $a_text)
Add Command button.
$filename
Definition: buildRTE.php:89
User interface class for advanced drop-down selection lists.
__construct($a_parent_obj, $a_parent_cmd, $a_exp_obj)
Constructor.