]> git.mxchange.org Git - friendica-addons.git/blob - dav/SabreDAV/lib/Sabre/DAV/Node.php
Merge branch 'master' of git://github.com/friendica/friendica-addons
[friendica-addons.git] / dav / SabreDAV / lib / Sabre / DAV / Node.php
1 <?php
2
3 /**
4  * Node class
5  *
6  * This is a helper class, that should aid in getting nodes setup.
7  *
8  * @package Sabre
9  * @subpackage DAV
10  * @copyright Copyright (C) 2007-2012 Rooftop Solutions. All rights reserved.
11  * @author Evert Pot (http://www.rooftopsolutions.nl/)
12  * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
13  */
14 abstract class Sabre_DAV_Node implements Sabre_DAV_INode {
15
16     /**
17      * Returns the last modification time
18      *
19      * In this case, it will simply return the current time
20      *
21      * @return int
22      */
23     public function getLastModified() {
24
25         return time();
26
27     }
28
29     /**
30      * Deletes the current node
31      *
32      * @throws Sabre_DAV_Exception_Forbidden
33      * @return void
34      */
35     public function delete() {
36
37         throw new Sabre_DAV_Exception_Forbidden('Permission denied to delete node');
38
39     }
40
41     /**
42      * Renames the node
43      *
44      * @throws Sabre_DAV_Exception_Forbidden
45      * @param string $name The new name
46      * @return void
47      */
48     public function setName($name) {
49
50         throw new Sabre_DAV_Exception_Forbidden('Permission denied to rename file');
51
52     }
53
54 }
55