ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Sabre\DAV\ServerPreconditionsNode Class Reference
+ Inheritance diagram for Sabre\DAV\ServerPreconditionsNode:
+ Collaboration diagram for Sabre\DAV\ServerPreconditionsNode:

Public Member Functions

 getETag ()
 Returns the ETag for a file. More...
 
 getLastModified ()
 Returns the last modification time as a unix timestamp. More...
 
 getName ()
 Returns the name of the node. More...
 
- Public Member Functions inherited from Sabre\DAV\File
 put ($data)
 Replaces the contents of the file. More...
 
 get ()
 Returns the data. More...
 
 getSize ()
 Returns the size of the file, in bytes. More...
 
 getETag ()
 Returns the ETag for a file. More...
 
 getContentType ()
 Returns the mime-type for a file. More...
 
- Public Member Functions inherited from Sabre\DAV\Node
 getLastModified ()
 Returns the last modification time as a unix timestamp. More...
 
 delete ()
 Deletes the current node. More...
 
 setName ($name)
 Renames the node. More...
 
 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...
 
 put ($data)
 Replaces the contents of the file. More...
 
 get ()
 Returns the data. More...
 
 getContentType ()
 Returns the mime-type for a file. More...
 
 getETag ()
 Returns the ETag for a file. More...
 
 getSize ()
 Returns the size of the node, in bytes. More...
 

Detailed Description

Definition at line 323 of file ServerPreconditionTest.php.

Member Function Documentation

◆ getETag()

Sabre\DAV\ServerPreconditionsNode::getETag ( )

Returns the ETag for a file.

An ETag is a unique identifier representing the current version of the file. If the file changes, the ETag MUST change. The ETag is an arbitrary string, but MUST be surrounded by double-quotes.

Return null if the ETag can not effectively be determined

Returns
string|null

Reimplemented from Sabre\DAV\File.

Definition at line 325 of file ServerPreconditionTest.php.

325 {
326
327 return '"abc123"';
328
329 }

◆ getLastModified()

Sabre\DAV\ServerPreconditionsNode::getLastModified ( )

Returns the last modification time as a unix timestamp.

If the information is not available, return null.

Returns
int

Reimplemented from Sabre\DAV\Node.

Definition at line 331 of file ServerPreconditionTest.php.

331 {
332
333 /* my birthday & time, I believe */
334 return strtotime('1985-04-07 01:30 +02:00');
335
336 }

◆ getName()

Sabre\DAV\ServerPreconditionsNode::getName ( )

Returns the name of the node.

This is used to generate the url.

Returns
string

Implements Sabre\DAV\INode.

Definition at line 338 of file ServerPreconditionTest.php.

338 {
339
340 return 'foo';
341
342 }

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