WebDav
class WebDav
Utility class to ease Webdav commands Needs DbTool object in order to log error events in database Needs settings array with : serverName : www.example.com davPath : /remote.src/webdav/ userpwd : admin:adminpassword
Properties
| string | $davPath | ||
| string | $functionName |
Methods
__construct($dbt, $settings)
No description
string
delete($source)
No description
string
shortDir(string $rootDir)
No description
string
longDir(string $rootDir)
No description
string|null
getFirstNodeName($xml)
No description
array
nodeNames($xml)
No description
array
shortNodes($xml, $baseLength)
No description
string
copyNode(string $source, string $destination)
No description
string
createFolder($folderName)
No description
string
moveNode(string $source, string $destination)
No description
string
upload(string $source)
EXPERIMENTAL : upload file
void
download($path)
Download a file from WebDAV by its path (GET param 'path' or 'file')
Details
at line 44
__construct($dbt, $settings)
No description
at line 61
string
delete($source)
No description
at line 89
string
shortDir(string $rootDir)
No description
at line 93
string
longDir(string $rootDir)
No description
at line 117
string|null
getFirstNodeName($xml)
No description
at line 126
array
nodeNames($xml)
No description
at line 139
array
shortNodes($xml, $baseLength)
No description
at line 153
string
copyNode(string $source, string $destination)
No description
at line 167
string
createFolder($folderName)
No description
at line 178
string
moveNode(string $source, string $destination)
No description
at line 197
string
upload(string $source)
EXPERIMENTAL : upload file
at line 215
void
download($path)
Download a file from WebDAV by its path (GET param 'path' or 'file')