Public Member Functions | |
__construct ($dbaccess="") | |
ServeRequest () | |
check_auth ($type, $user, $pass) | |
PROPFIND (&$options, &$files) | |
readfolder ($fspath, $onlyfld=false) | |
path2id ($fspath, &$vid=null) | |
getFilesProperties (&$doc) | |
docpropinfo (&$doc, $path, $firstlevel) | |
vidpropinfo ($path, $docid, $withfile=false) | |
_can_execute ($name, $path=false) | |
_mimetype ($fspath) | |
GET (&$options) | |
GetDir ($fspath, &$options) | |
PUT (&$options) | |
MKCOL ($options) | |
DELETE ($options) | |
MOVE ($options) | |
COPY ($options) | |
PROPPATCH (&$options) | |
LOCK (&$options) | |
UNLOCK (&$options) | |
checkLock ($path) | |
create_database () | |
addsession ($sessid, $vid, $docid, $owner, $expire=0) | |
getLogin ($docid, $vid, $sessid) | |
getSession ($docid, $vid, $owner) | |
mybasename ($p) | |
cleanDeleted ($fid) | |
setFolderMaxItem ($limit) | |
getFolderMaxItem () | |
Public Member Functions inherited from HTTP_WebDAV_Server | |
__construct () | |
ServeRequest () | |
http_OPTIONS () | |
http_PROPFIND () | |
http_PROPPATCH () | |
http_MKCOL () | |
http_GET () | |
_get_ranges (&$options) | |
_multipart_byterange_header ($mimetype=false, $from=false, $to=false, $total=false) | |
http_HEAD () | |
http_PUT () | |
http_DELETE () | |
http_COPY () | |
http_MOVE () | |
http_LOCK () | |
http_UNLOCK () | |
_copymove ($what) | |
_allow () | |
mkprop () | |
_check_auth () | |
_new_uuid () | |
_new_locktoken () | |
_if_header_lexer ($string, &$pos) | |
_if_header_parser ($str) | |
_check_if_header_conditions () | |
_check_uri_condition ($uri, $condition) | |
_check_lock_status ($path, $exclusive_only=false) | |
lockdiscovery ($path) | |
http_status ($status) | |
_urlencode ($url) | |
_urldecode ($path) | |
_prop_encode ($text) | |
_slashify ($path) | |
_unslashify ($path) | |
_mergePathes ($parent, $child) | |
Data Fields | |
$base = "" | |
$db_freedom = "" | |
$type = 'webdav' | |
$racine = 9 | |
$db_webdav = "dbname=webdav user=anakeen" | |
Data Fields inherited from HTTP_WebDAV_Server | |
$debug = false | |
$uri | |
$base_uri | |
$path | |
$http_auth_realm = "PHP WebDAV" | |
$dav_powered_by = "" | |
$_if_header_uris = array() | |
$_http_status = "200 OK" | |
$_prop_encoding = "utf-8" | |
$_SERVER | |
__construct | ( | $dbaccess = "" | ) |
Definition at line 66 of file Class.FdlDav.php.
_can_execute | ( | $name, | |
$path = false |
|||
) |
detect if a given program is found in the search PATH
helper function used by _mimetype() to detect if the external 'file' utility is available
string | program name |
string | optional search path, defaults to $PATH |
Definition at line 453 of file Class.FdlDav.php.
_mimetype | ( | $fspath | ) |
try to detect the mime type of a file
string | file path |
Definition at line 493 of file Class.FdlDav.php.
addsession | ( | $sessid, | |
$vid, | |||
$docid, | |||
$owner, | |||
$expire = 0 |
|||
) |
create database tables for property and lock storage
void |
Definition at line 1273 of file Class.FdlDav.php.
check_auth | ( | $type, | |
$user, | |||
$pass | |||
) |
No authentication is needed here
private
string | HTTP Authentication type (Basic, Digest, ...) |
string | Username |
string | Password |
Definition at line 106 of file Class.FdlDav.php.
checkLock | ( | $path | ) |
checkLock() helper
string | resource path to check for locks |
Definition at line 1210 of file Class.FdlDav.php.
cleanDeleted | ( | $fid | ) |
Definition at line 1333 of file Class.FdlDav.php.
COPY | ( | $options | ) |
COPY method handler
array | general parameter passing array |
Definition at line 996 of file Class.FdlDav.php.
create_database | ( | ) |
create database tables for property and lock storage
void |
Definition at line 1262 of file Class.FdlDav.php.
DELETE | ( | $options | ) |
DELETE method handler
array | general parameter passing array |
Definition at line 801 of file Class.FdlDav.php.
docpropinfo | ( | & | $doc, |
$path, | |||
$firstlevel | |||
) |
GET | ( | & | $options | ) |
GET method handler
array | parameter passing array |
Definition at line 562 of file Class.FdlDav.php.
GetDir | ( | $fspath, | |
& | $options | ||
) |
GET method handler for directories
This is a very simple mod_index lookalike. See RFC 2518, Section 8.4 on GET/HEAD for collections
string | directory path |
Definition at line 622 of file Class.FdlDav.php.
getFilesProperties | ( | & | $doc | ) |
getFolderMaxItem | ( | ) |
Get the currently applied maximum number
Definition at line 1361 of file Class.FdlDav.php.
getLogin | ( | $docid, | |
$vid, | |||
$sessid | |||
) |
get login from session
void |
Definition at line 1294 of file Class.FdlDav.php.
getSession | ( | $docid, | |
$vid, | |||
$owner | |||
) |
get session from login
int | $docid | document identifier |
int | $vid | vault identifier |
string | $owner | user login |
Definition at line 1314 of file Class.FdlDav.php.
LOCK | ( | & | $options | ) |
LOCK method handler
array | general parameter passing array |
Definition at line 1131 of file Class.FdlDav.php.
MKCOL | ( | $options | ) |
MKCOL method handler
array | general parameter passing array |
Definition at line 749 of file Class.FdlDav.php.
MOVE | ( | $options | ) |
MOVE method handler
array | general parameter passing array |
Definition at line 853 of file Class.FdlDav.php.
mybasename | ( | $p | ) |
Definition at line 1326 of file Class.FdlDav.php.
path2id | ( | $fspath, | |
& | $vid = null |
||
) |
PROPFIND | ( | & | $options, |
& | $files | ||
) |
PROPFIND method handler
array | $options | general parameter passing array |
array | $files | return array for file properties |
Definition at line 117 of file Class.FdlDav.php.
PROPPATCH | ( | & | $options | ) |
PROPPATCH method handler
array | general parameter passing array |
Definition at line 1092 of file Class.FdlDav.php.
PUT | ( | & | $options | ) |
PUT method handler
array | parameter passing array |
Definition at line 645 of file Class.FdlDav.php.
readfolder | ( | $fspath, | |
$onlyfld = false |
|||
) |
ServeRequest | ( | ) |
setFolderMaxItem | ( | $limit | ) |
Set the maximum number of documents returned when listing content of a folder
int | $limit | limit value (value < 0 for no limit) |
Definition at line 1348 of file Class.FdlDav.php.
UNLOCK | ( | & | $options | ) |
UNLOCK method handler
array | general parameter passing array |
Definition at line 1180 of file Class.FdlDav.php.
vidpropinfo | ( | $path, | |
$docid, | |||
$withfile = false |
|||
) |
virtual path
Definition at line 373 of file Class.FdlDav.php.
$base = "" |
Definition at line 32 of file Class.FdlDav.php.
$db_freedom = "" |
Definition at line 34 of file Class.FdlDav.php.
$db_webdav = "dbname=webdav user=anakeen" |
Definition at line 63 of file Class.FdlDav.php.
$racine = 9 |
Definition at line 48 of file Class.FdlDav.php.
$type = 'webdav' |
Type : 'webdav' or 'freedav'
Default type is 'webdav'
Definition at line 40 of file Class.FdlDav.php.