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
 delete ()
 Deleted the current node. More...
 
 getName ()
 Returns the name of the node. More...
 
 setName ($name)
 Renames the node. More...
 
 getLastModified ()
 Returns the last modification time, as a unix timestamp. More...
 

Detailed Description

Node class.

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

Author
Evert Pot (http://evertpot.com/) @license 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

Forbidden

Returns
void

Implements Sabre\DAV\INode.

Reimplemented in Sabre\CalDAV\CalendarObject, Sabre\CalDAV\Notifications\Node, Sabre\CalDAV\Schedule\SchedulingObject, Sabre\CalDAV\Subscriptions\Subscription, Sabre\CardDAV\AddressBook, Sabre\CardDAV\AddressBookHome, Sabre\CardDAV\Card, Sabre\DAV\Mock\Collection, Sabre\DAV\Mock\File, Sabre\DAV\TreeDirectoryTester, ilObjectDAV, and ilObjRepositoryRootDAV.

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.

Reimplemented in Sabre\CalDAV\CalendarObject, Sabre\CalDAV\Subscriptions\Subscription, Sabre\CardDAV\AddressBook, Sabre\CardDAV\AddressBookHome, Sabre\CardDAV\Card, Sabre\DAV\Mock\File, Sabre\DAV\ServerPreconditionsNode, and ilObjectDAV.

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

Forbidden

Returns
void

Implements Sabre\DAV\INode.

Reimplemented in ilObjectDAV, ilObjFileDAV, Sabre\CardDAV\AddressBookHome, Sabre\DAV\Mock\File, Sabre\DAV\TreeDirectoryTester, ilObjRepositoryRootDAV, and Sabre\CardDAV\AddressBook.

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: