ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
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... | |
![]() | |
__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... | |
Additional Inherited Members | |
![]() | |
$path | |
File class.
Sabre\DAV\FSExt\File::delete | ( | ) |
Sabre\DAV\FSExt\File::get | ( | ) |
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.
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.
Sabre\DAV\FSExt\File::getSize | ( | ) |
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().
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().