Blame view
sources/3rdparty/sabre/dav/lib/Sabre/DAV/Node.php
1.05 KB
|
03e52840d
|
1 |
<?php |
|
6d9380f96
|
2 |
namespace Sabre\DAV; |
|
03e52840d
|
3 4 5 6 7 |
/** * Node class * * This is a helper class, that should aid in getting nodes setup. * |
|
6d9380f96
|
8 9 10 |
* @copyright Copyright (C) 2007-2014 fruux GmbH (https://fruux.com/). * @author Evert Pot (http://evertpot.com/) * @license http://sabre.io/license/ Modified BSD License |
|
03e52840d
|
11 |
*/ |
|
6d9380f96
|
12 |
abstract class Node implements INode {
|
|
03e52840d
|
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
/**
* Returns the last modification time
*
* In this case, it will simply return the current time
*
* @return int
*/
public function getLastModified() {
return time();
}
/**
* Deletes the current node
*
|
|
6d9380f96
|
30 |
* @throws Sabre\DAV\Exception\Forbidden |
|
03e52840d
|
31 32 33 |
* @return void
*/
public function delete() {
|
|
6d9380f96
|
34 |
throw new Exception\Forbidden('Permission denied to delete node');
|
|
03e52840d
|
35 36 37 38 39 40 |
}
/**
* Renames the node
*
|
|
6d9380f96
|
41 |
* @throws Sabre\DAV\Exception\Forbidden |
|
03e52840d
|
42 43 44 45 |
* @param string $name The new name
* @return void
*/
public function setName($name) {
|
|
6d9380f96
|
46 |
throw new Exception\Forbidden('Permission denied to rename file');
|
|
03e52840d
|
47 48 49 50 |
}
}
|