13 if (is_resource($str)) {
14 $str = stream_get_contents($str);
49 if (is_resource(
$data)) {
60 $offset = strlen($this->
data) - $offset;
64 substr($this->
data, 0, $offset) .
66 substr($this->
data, $offset + strlen(
$data));
87 return strlen($this->
data);
93 return '"' . $this->
data .
'"';
99 throw new DAV\Exception\MethodNotAllowed();
105 throw new DAV\Exception\MethodNotAllowed();
This interface provides a way to modify only part of a target resource It may be used to update a fil...
setName($name)
Renames the node.
patch($data, $rangeType, $offset=null)
Updates the file based on a range specification.
getSize()
Returns the size of the node, in bytes.
getName()
Returns the name of the node.
put($str)
Replaces the contents of the file.
getETag()
Returns the ETag for a file.
getLastModified()
Returns the last modification time, as a unix timestamp.
getContentType()
Returns the mime-type for a file.