ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilObjFolderListGUI.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
43 function init()
44 {
45 $this->static_link_enabled = true;
46 $this->delete_enabled = true;
47 $this->cut_enabled = true;
48 $this->copy_enabled = true;
49 $this->subscribe_enabled = true;
50 $this->link_enabled = false;
51 $this->info_screen_enabled = true;
52 $this->type = "fold";
53 $this->gui_class_name = "ilobjfoldergui";
54
55 // general commands array
56 include_once('./Modules/Folder/classes/class.ilObjFolderAccess.php');
57 $this->commands = ilObjFolderAccess::_getCommands();
58 }
59
60 // BEGIN WebDAV: Get parent properties
61 // BEGIN ChangeEvent: Get parent properties
70 function getProperties()
71 {
72 global $lng, $ilUser, $ilias;
73
74 // BEGIN WebDAV get parent properties
75 $props = parent::getProperties();
76 // END WebDAV get parent properties
77
78 return $props;
79 }
80 // END ChangeEvent: Get parent properties
81 // END WebDAV: Get parent properties
82
90 function getCommandLink($a_cmd)
91 {
92 global $ilCtrl;
93
94 // BEGIN WebDAV: Mount webfolder.
95 switch ($a_cmd)
96 {
97 case 'mount_webfolder' :
98 require_once ('Services/WebDAV/classes/class.ilDAVActivationChecker.php');
100 {
101 require_once ('Services/WebDAV/classes/class.ilDAVServer.php');
102 $davServer = ilDAVServer::getInstance();
103
104 // XXX: The following is a very dirty, ugly trick.
105 // To mount URI needs to be put into two attributes:
106 // href and folder. This hack returns both attributes
107 // like this: http://...mount_uri..." folder="http://...folder_uri...
108 $cmd_link = $davServer->getMountURI($this->ref_id, $this->title, $this->parent).
109 '" folder="'.$davServer->getFolderURI($this->ref_id, $this->title, $this->parent);
110 break;
111 } // Fall through, when plugin is inactive.
112 default :
113 // separate method for this line
114 $ilCtrl->setParameterByClass("ilrepositorygui", "ref_id", $this->ref_id);
115 $cmd_link = $ilCtrl->getLinkTargetByClass("ilrepositorygui", $a_cmd);
116 $ilCtrl->setParameterByClass("ilrepositorygui", "ref_id", $_GET["ref_id"]);
117 break;
118 }
119
120 return $cmd_link;
121 // END WebDAV: Mount Webfolder
122 }
123
124 // BEGIN WebDAV: mount_webfolder in _blank frame
134 function getCommandFrame($a_cmd)
135 {
136 // begin-patch fm
137 return parent::getCommandFrame($a_cmd);
138 // end-patch fm
139 }
140 // END WebDAV: mount_webfolder in _blank frame
141
142
143} // END class.ilObjFolderListGUI
144?>
$_GET["client_id"]
An exception for terminatinating execution or to throw for unit testing.
static getInstance()
Get singelton instance.
static _getCommands()
get commands
Class ilObjFolderListGUI.
getCommandFrame($a_cmd)
Get command target frame.
getProperties()
Get item properties.
getCommandLink($a_cmd)
Get command link url.
Class ilObjectListGUI.
global $ilCtrl
Definition: ilias.php:18
global $lng
Definition: privfeed.php:17
$ilUser
Definition: imgupload.php:18