ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilObjRootFolderListGUI.php
Go to the documentation of this file.
1<?php
2/*
3 +-----------------------------------------------------------------------------+
4 | ILIAS open source |
5 +-----------------------------------------------------------------------------+
6 | Copyright (c) 1998-2001 ILIAS open source, University of Cologne |
7 | |
8 | This program is free software; you can redistribute it and/or |
9 | modify it under the terms of the GNU General Public License |
10 | as published by the Free Software Foundation; either version 2 |
11 | of the License, or (at your option) any later version. |
12 | |
13 | This program is distributed in the hope that it will be useful, |
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 | GNU General Public License for more details. |
17 | |
18 | You should have received a copy of the GNU General Public License |
19 | along with this program; if not, write to the Free Software |
20 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
21 +-----------------------------------------------------------------------------+
22*/
23
24
35include_once "Services/Object/classes/class.ilObjectListGUI.php";
36
38{
39 public function __construct()
40 {
42 }
43
47 public function init()
48 {
49 $this->copy_enabled = false;
50 $this->delete_enabled = true;
51 $this->cut_enabled = true;
52 $this->subscribe_enabled = true;
53 $this->link_enabled = false;
54 $this->type = "root";
55 $this->gui_class_name = "ilobjrootfoldergui";
56
57 // general commands array
58 include_once('./Modules/RootFolder/classes/class.ilObjRootFolderAccess.php');
59 $this->commands = ilObjRootFolderAccess::_getCommands();
60 }
61
69 public function getCommandLink($a_cmd)
70 {
71 global $ilCtrl;
72
73 $ilCtrl->setParameterByClass("ilrepositorygui", "ref_id", $this->ref_id);
74 $cmd_link = $ilCtrl->getLinkTargetByClass("ilrepositorygui", $a_cmd);
75 $ilCtrl->setParameterByClass("ilrepositorygui", "ref_id", $_GET["ref_id"]);
76
77 return $cmd_link;
78 }
79} // END class.ilObjRootFolderGUI
$_GET["client_id"]
An exception for terminatinating execution or to throw for unit testing.
Class ilObjRootFolderListGUI.
getCommandLink($a_cmd)
Get command link url.
Class ilObjectListGUI.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc