source: pmb4.1/trunk/fuentes/pmb/admin/connecteurs/out/webdav/lib/Sabre/DAV/Node.php @ 478

Last change on this file since 478 was 478, checked in by mabarracus, 4 years ago

copy trusty code 4.1

  • Property svn:executable set to *
File size: 1.1 KB
Line 
1<?php
2
3namespace Sabre\DAV;
4
5/**
6 * Node class
7 *
8 * This is a helper class, that should aid in getting nodes setup.
9 *
10 * @copyright Copyright (C) 2007-2013 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 */
14abstract class Node implements 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 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 Exception\Forbidden('Permission denied to rename file');
51
52    }
53
54}
55
Note: See TracBrowser for help on using the repository browser.