|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Inheritance diagram for Sabre\DAV\FSExt\File:
Collaboration diagram for Sabre\DAV\FSExt\File:Public Member Functions | |
| put ($data) | |
| Updates the data. More... | |
| patch ($data, $rangeType, $offset=null) | |
| Updates the file based on a range specification. More... | |
| get () | |
| Returns the data. More... | |
| delete () | |
| Delete the current file. More... | |
| getETag () | |
| Returns the ETag for a file. More... | |
| getContentType () | |
| Returns the mime-type for a file. More... | |
| getSize () | |
| Returns the size of the file, in bytes. More... | |
Public Member Functions inherited from Sabre\DAV\FS\Node | |
| __construct ($path) | |
| Sets up the node, expects a full path name. 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... | |
| 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... | |
| patch ($data, $rangeType, $offset=null) | |
| Updates the file based on a range specification. 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... | |
Additional Inherited Members | |
Protected Attributes inherited from Sabre\DAV\FS\Node | |
| $path | |
File class.
| Sabre\DAV\FSExt\File::delete | ( | ) |
Delete the current file.
Implements Sabre\DAV\INode.
Definition at line 102 of file File.php.
| Sabre\DAV\FSExt\File::get | ( | ) |
Returns the data.
Implements Sabre\DAV\IFile.
Definition at line 91 of file File.php.
| Sabre\DAV\FSExt\File::getContentType | ( | ) |
Returns the mime-type for a file.
If null is returned, we'll assume application/octet-stream
Implements Sabre\DAV\IFile.
Definition at line 135 of file File.php.
| Sabre\DAV\FSExt\File::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
Implements Sabre\DAV\IFile.
Definition at line 118 of file File.php.
| Sabre\DAV\FSExt\File::getSize | ( | ) |
Returns the size of the file, in bytes.
Implements Sabre\DAV\IFile.
Definition at line 146 of file File.php.
| Sabre\DAV\FSExt\File::patch | ( | $data, | |
| $rangeType, | |||
$offset = null |
|||
| ) |
Updates the file based on a range specification.
The first argument is the data, which is either a readable stream resource or a string.
The second argument is the type of update we're doing. This is either:
After a successful put operation, you may choose to return an ETag. The ETAG must always be surrounded by double-quotes. These quotes must appear in the actual string you're returning.
Clients may use the ETag from a PUT request to later on make sure that when they update the file, the contents haven't changed in the mean time.
| resource | string | $data | |
| int | $rangeType | |
| int | $offset |
Implements Sabre\DAV\PartialUpdate\IPatchSupport.
Definition at line 60 of file File.php.
References $data, $f, and Sabre\DAV\File\getETag().
Here is the call graph for this function:| Sabre\DAV\FSExt\File::put | ( | $data | ) |
Updates the data.
Data is a readable stream resource.
| resource | string | $data |
Implements Sabre\DAV\IFile.
Definition at line 25 of file File.php.
References $data, and Sabre\DAV\File\getETag().
Here is the call graph for this function: