WebDAV
WebDAV
Properties
request
protected Request $request
manager
protected Manager $manager
__propset
private string $__propset
__dav_classes
private array $__dav_classes
__allowed_methods
private array $__allowed_methods
Methods
runAction
Executes the specified action for the WebDAV controller.
public runAction({Array})
Parameters
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({Array})
This 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({Array})
This 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({Array})
lock
Handles the LOCK WebDAV method.
public lock({Array})
post
Handles the POST WebDAV method.
public post({Array})
copy
Handles the COPY WebDAV method.
public copy({Array})
move
Handles the MOVE WebDAV method.
public move({Array})
delete
Handles the DELETE WebDAV method.
public delete({Array})
trace
Handles the TRACE HTTP method.
public trace({Array})
writeObjectStatusResponse
Generates and writes the XML response for a given Dir or File object.
private writeObjectStatusResponse({Array})
This 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