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 43
__construct($dbt, $settings)
No description
at line 60
string
delete($source)
No description
at line 88
string
shortDir(string $rootDir)
No description
at line 92
string
longDir(string $rootDir)
No description
at line 116
string|null
getFirstNodeName($xml)
No description
at line 125
array
nodeNames($xml)
No description
at line 138
array
shortNodes($xml, $baseLength)
No description
at line 152
string
copyNode(string $source, string $destination)
No description
at line 166
string
createFolder($folderName)
No description
at line 177
string
moveNode(string $source, string $destination)
No description
at line 196
string
upload(string $source)
EXPERIMENTAL : upload file
at line 214
void
download($path)
Download a file from WebDAV by its path (GET param 'path' or 'file')