ILIAS  release_8 Revision v8.24
class.ilQuestionPoolExportTableGUI.php
Go to the documentation of this file.
1<?php
2
25{
26 public function __construct($a_parent_obj, $a_parent_cmd, $a_exp_obj)
27 {
28 parent::__construct($a_parent_obj, $a_parent_cmd, $a_exp_obj);
29
30 // NOT REQUIRED ANYMORE, PROBLEM NOW FIXED IN THE ROOT
31 // KEEP CODE, JF OPINIONS / ROOT FIXINGS CAN CHANGE
32 //$this->addCustomColumn($this->lng->txt('actions'), $this, 'formatActionsList');
33 }
34
39 protected function formatActionsList($type, $filename): string
40 {
44 global $DIC;
45 $ilCtrl = $DIC['ilCtrl'];
46
47 $list = new ilAdvancedSelectionListGUI();
48 $list->setListTitle($this->lng->txt('actions'));
49 $ilCtrl->setParameter($this->getParentObject(), 'file', $type . ':' . $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
58 public function numericOrdering(string $a_field): bool
59 {
60 if (in_array($a_field, array('size', 'date'))) {
61 return true;
62 }
63
64 return false;
65 }
66
67 /***
68 *
69 */
70 protected function initMultiCommands(): void
71 {
72 $this->addMultiCommand('confirmDeletion', $this->lng->txt('delete'));
73 }
74}
$filename
Definition: buildRTE.php:78
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
numericOrdering(string $a_field)
Should this field be sorted numeric?
__construct($a_parent_obj, $a_parent_cmd, $a_exp_obj)
addMultiCommand(string $a_cmd, string $a_text)
global $DIC
Definition: feed.php:28
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
$type