WebDAV
WebDAV
Properties
request
protected Request $requestmanager
protected Manager $manager__propset
private string $__propset = '<http://apache.org/dav/propset/fs/1>'__dav_classes
private array $__dav_classes = array (
0 => 1,
)__allowed_methods
private array $__allowed_methods = array (
0 => 'OPTIONS',
1 => 'GET',
2 => 'HEAD',
3 => 'POST',
4 => 'DELETE',
5 => 'TRACE',
6 => 'PROPFIND',
7 => 'PROPPATCH',
8 => 'COPY',
9 => 'MOVE',
10 => 'LOCK',
)Methods
runAction
Executes the specified action for the WebDAV controller.
public runAction(string $actionName, array $actionArgs, bool $namedActionArgs): ResponseParameters
| Parameter | Type | Description |
|---|---|---|
$actionName | string | the name of the action to execute |
$actionArgs | array | Optional. The arguments to pass to the action. Default is an empty array. |
$namedActionArgs | bool | Optional. Whether the action arguments are named. Default is false. |
options
Handles the OPTIONS HTTP method for the WebDAV controller.
public options(): ResponseThis method generates a response indicating the allowed HTTP methods and the WebDAV capabilities supported by the server.
propfind
Handles the PROPFIND request for WebDAV.
public propfind(): ResponseThis method processes a PROPFIND request, which is used to retrieve properties for a resource identified by the request URI. It supports Depth headers of 0 and 1, but throws an exception for Depth headers of "infinity".
proppatch
Handles the PROPPATCH WebDAV method.
public proppatch(): Responselock
Handles the LOCK WebDAV method.
public lock(): Responsepost
Handles the POST WebDAV method.
public post(): Responsecopy
Handles the COPY WebDAV method.
public copy(): Responsemove
Handles the MOVE WebDAV method.
public move(): Responsedelete
Handles the DELETE WebDAV method.
public delete(): Responsetrace
Handles the TRACE HTTP method.
public trace(): ResponsewriteObjectStatusResponse
Generates and writes the XML response for a given Dir or File object.
private writeObjectStatusResponse(File $object, Element $xml): ElementThis method constructs an XML response that includes various properties of the provided Dir or File object, such as its full path, creation date, last modified date, content length (for files), and more. The response adheres to the WebDAV protocol.
Parameters
| Parameter | Type | Description |
|---|---|---|
$object | File | the directory or file object for which the response is generated |
$xml | Element | the XML element to which the response is added |
Generated by Hazaar API Doc Generator on Mon, 27 Oct 2025 13:01:29 +0000