class WebdavService extends WebdavService

Properties

SystemDMSController $mod from  WebdavService
array $unsupported_methods from  WebdavService
string $group_title from  WebdavService
protected string $tmp_file_name from  WebdavService
protected string $last_document from  WebdavService

Methods

bool|string
categoryPathToId(array $path_parts, int $pid)

No description

string
copy(string $source, string $dest, bool $overwrite = false)

Copy File or Folder

bool|string|array
create_dir(string $working_dir, string $new_dir)

Resource Handler wraps Create Dir/Collection

bool
delete(string $path)

Delete File or Folder

string
document_index_to_path(DocumentIndex $document_index)

Document index to WebDAV path

static string
getETag(Document $document)

No description

array|bool
get_catinfo(int $category_id)

Get Information about category

void
get_directory_listing($info, bool $path = false)

GET method handler for directories This is a very simple mod_index lookalike.

array|bool
get_docinfo($document, $cat_id)

Get properties for a single file/resource

string
get_lockinfo(string $path, array $options = null)

Get lock info

array|bool
get_propinfo(string $path, int|string $depth = 0)

Get Properties for path

string
id_to_path($id, $type = 'category')

No description

init()

Initialization

bool
is_available()

No description

string
move(string $source, string $dest, bool $overwrite = false)

Move File or Folder

bool
onUploadFinished($server)

No description

path_to_document_index(mixed $path)

Convert path to document_index

array|bool
path_to_id(string $path, string $what = 'auto')

Path Traversal Function

string|array
read(string $path = null)

Read File / Folder

string
write(string $path, array $params)

Write File

Details

in WebdavService at line 978
bool|string categoryPathToId(array $path_parts, int $pid)

No description

Parameters

array $path_parts
int $pid

Return Value

bool|string

in WebdavService at line 444
string copy(string $source, string $dest, bool $overwrite = false)

Copy File or Folder

Parameters

string $source

path_to_file [always relative]

string $dest

destination

bool $overwrite

Overwrite Destination?

Return Value

string

(NEW?) ? "201 Created" : "204 No Content"

in WebdavService at line 179
bool|string|array create_dir(string $working_dir, string $new_dir)

Resource Handler wraps Create Dir/Collection

Parameters

string $working_dir

Current Working Directory (relative to resource)

string $new_dir

New Directory

Return Value

bool|string|array

in WebdavService at line 378
bool delete(string $path)

Delete File or Folder

Parameters

string $path

path_to_file [always relative]

Return Value

bool

success?

in WebdavService at line 1047
string document_index_to_path(DocumentIndex $document_index)

Document index to WebDAV path

Parameters

DocumentIndex $document_index

OR id(int)

Return Value

string

in WebdavService at line 1061
static string getETag(Document $document)

No description

Parameters

Document $document

Return Value

string

in WebdavService at line 728
array|bool get_catinfo(int $category_id)

Get Information about category

Parameters

int $category_id

Category ID

Return Value

array|bool

in WebdavService at line 53
void get_directory_listing($info, bool $path = false)

GET method handler for directories This is a very simple mod_index lookalike.

See RFC 2518, Section 8.4 on GET/HEAD for collections

Parameters

$info
bool $path

Return Value

void

function has to handle HTTP response itself

in WebdavService at line 768
array|bool get_docinfo($document, $cat_id)

Get properties for a single file/resource

Parameters

$document
$cat_id

Return Value

array|bool

resource properties

in WebdavService at line 278
string get_lockinfo(string $path, array $options = null)

Get lock info

Parameters

string $path
array $options

Return Value

string

in WebdavService at line 658
array|bool get_propinfo(string $path, int|string $depth = 0)

Get Properties for path

Parameters

string $path

path of directory

int|string $depth

depth of search request (0, 1, infinity)

Return Value

array|bool

in WebdavService at line 828
string id_to_path($id, $type = 'category')

No description

Parameters

$id
$type

Return Value

string

in WebdavService at line 39
init()

Initialization

in WebdavService at line 158
bool is_available()

No description

Return Value

bool

in WebdavService at line 472
string move(string $source, string $dest, bool $overwrite = false)

Move File or Folder

Parameters

string $source

path_to_file [always relative]

string $dest

destination

bool $overwrite

Overwrite Destination?

Return Value

string

(NEW?) ? "201 Created" : "204 No Content"

in WebdavService at line 359
bool onUploadFinished($server)

No description

Parameters

$server

Return Value

bool

in WebdavService at line 1024
DocumentIndex|false path_to_document_index(mixed $path)

Convert path to document_index

Parameters

mixed $path

Return Value

DocumentIndex|false

in WebdavService at line 930
array|bool path_to_id(string $path, string $what = 'auto')

Path Traversal Function

Parameters

string $path

Path

string $what

Return Value

array|bool

[cat_id, file_id]

in WebdavService at line 244
string|array read(string $path = null)

Read File / Folder

Parameters

string $path

path_to_file [always relative]

Return Value

string|array

FS Path

in WebdavService at line 295
string write(string $path, array $params)

Write File

Parameters

string $path

path_to_file [always relative]

array $params

Return Value

string

FS Path