ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilObjMountPointDAV.php
Go to the documentation of this file.
1<?php
2// BEGIN WebDAV
3/*
4 +-----------------------------------------------------------------------------+
5 | ILIAS open source |
6 +-----------------------------------------------------------------------------+
7 | Copyright (c) 1998-2005 ILIAS open source, University of Cologne |
8 | |
9 | This program is free software; you can redistribute it and/or |
10 | modify it under the terms of the GNU General Public License |
11 | as published by the Free Software Foundation; either version 2 |
12 | of the License, or (at your option) any later version. |
13 | |
14 | This program is distributed in the hope that it will be useful, |
15 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
17 | GNU General Public License for more details. |
18 | |
19 | You should have received a copy of the GNU General Public License |
20 | along with this program; if not, write to the Free Software |
21 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
22 +-----------------------------------------------------------------------------+
23*/
24
25require_once "class.ilObjectDAV.php";
26require_once "Modules/Category/classes/class.ilObjCategory.php";
27
41{
42 var $data;
49 {
50 $this->ilObjectDAV(-1);
51 }
52
58 function getObjectId()
59 {
60 return -1;
61 }
68 function read()
69 {
70 }
77 function write()
78 {
79 }
85 function getResourceName()
86 {
87 return '';
88 }
94 function getDisplayName()
95 {
96 return '';
97 }
104 {
105 return strtotime('2000-01-01');
106 }
107
114 {
115 return strtotime('2000-01-01');
116 }
123 {
124 return "collection";
125 }
126
131 function getContentType()
132 {
133 return 'httpd/unix-directory';
134 }
140 {
141 return 0;
142 }
143 function isPermitted($actions,$type='')
144 {
145 // All users have "visible" and "read" access to the mount point
146 $a = explode(',',$actions);
147 foreach ($a as $action)
148 {
149 switch ($action)
150 {
151 case 'read' :
152 case 'visible' :
153 break;
154 default :
155 return false;
156 }
157 }
158 return true;
159 }
166 function children()
167 {
168 global $tree;
169
170 $childrenDAV = array();
171 $data =& $tree->getNodeData($tree->getRootId());
172 $childDAV =& $this->createObject($data['ref_id'],'root');
173 if (! is_null($childDAV))
174 {
175 // Note: We must not assign with =& here, because this will cause trouble
176 // when other functions attempt to work with the $childrenDAV array.
177 $childrenDAV[] = $childDAV;
178 }
179 return $childrenDAV;
180 }
181}
182// END WebDAV
183?>
getModificationTimestamp()
Returns the modification timestamp of this object.
getContentType()
Returns the mime type of the content of this object.
getResourceType()
Returns the DAV resource type of this object.
getContentLength()
Returns the number of bytes of the content.
isPermitted($actions, $type='')
Returns whether a specific operation is permitted for the current user.
createObject($refId, $type)
Static factory method to create a DAV object for a given refId and type.
ilObjectDAV($refId, $obj=null)
Constructor.