ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Sabre\DAV\Node Class Reference

Node class. More...

+ Inheritance diagram for Sabre\DAV\Node:
+ Collaboration diagram for Sabre\DAV\Node:

Public Member Functions

 getLastModified ()
 Returns the last modification time as a unix timestamp. More...
 
 delete ()
 Deletes the current node. More...
 
 setName ($name)
 Renames the node. More...
 
- Public Member Functions inherited from Sabre\DAV\INode
 getName ()
 Returns the name of the node. More...
 

Detailed Description

Node class.

This is a helper class, that should aid in getting nodes setup.

Author
Evert Pot (http://evertpot.com/) http://sabre.io/license/ Modified BSD License

Definition at line 14 of file Node.php.

Member Function Documentation

◆ delete()

Sabre\DAV\Node::delete ( )

Deletes the current node.

Exceptions
Exception

Implements Sabre\DAV\INode.

Definition at line 35 of file Node.php.

35  {
36 
37  throw new Exception\Forbidden('Permission denied to delete node');
38 
39  }

◆ getLastModified()

Sabre\DAV\Node::getLastModified ( )

Returns the last modification time as a unix timestamp.

If the information is not available, return null.

Returns
int

Implements Sabre\DAV\INode.

Definition at line 23 of file Node.php.

23  {
24 
25  return null;
26 
27  }

◆ setName()

Sabre\DAV\Node::setName (   $name)

Renames the node.

Parameters
string$nameThe new name
Exceptions
Exception

Implements Sabre\DAV\INode.

Definition at line 48 of file Node.php.

48  {
49 
50  throw new Exception\Forbidden('Permission denied to rename file');
51 
52  }

The documentation for this class was generated from the following file: