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...
 

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.

Return null if the ETag can not effectively be determined.

The ETag must be surrounded by double-quotes, so something like this would make a valid ETag:

return '"someetag"';

Returns
string|null

Implements Sabre\DAV\IFile.

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.

Return null if the information is not available.

Returns
int|null

Implements Sabre\DAV\INode.

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: