Public Member Functions | |
__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 | |
$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 | |
Definition at line 41 of file Class.ServerDav.php.
__construct | ( | ) |
_allow | ( | ) |
check for implemented HTTP methods
void |
Definition at line 1185 of file Class.ServerDav.php.
_check_auth | ( | ) |
check authentication if check is implemented
void |
Definition at line 1247 of file Class.ServerDav.php.
_check_if_header_conditions | ( | ) |
check if conditions from "If:" headers are meat
the "If:" header is an extension to HTTP/1.1 defined in RFC 2518 section 9.4
void |
Definition at line 1447 of file Class.ServerDav.php.
_check_lock_status | ( | $path, | |
$exclusive_only = false |
|||
) |
string | path of resource to check |
bool | exclusive lock? |
Definition at line 1511 of file Class.ServerDav.php.
_check_uri_condition | ( | $uri, | |
$condition | |||
) |
Check a single URI condition parsed from an if-header
Check a single URI condition parsed from an if-header
string | $uri | URI to check |
string | $condition | Condition to check for this URI |
Definition at line 1493 of file Class.ServerDav.php.
_copymove | ( | $what | ) |
_get_ranges | ( | & | $options | ) |
parse HTTP Range: header
array | options array to store result in |
Definition at line 712 of file Class.ServerDav.php.
_if_header_lexer | ( | $string, | |
& | $pos | ||
) |
string | $string | header string to parse |
int | $pos | current parsing position |
Definition at line 1305 of file Class.ServerDav.php.
_if_header_parser | ( | $str | ) |
parse If: header
string | header string |
Definition at line 1364 of file Class.ServerDav.php.
_mergePathes | ( | $parent, | |
$child | |||
) |
Merge two pathes, make sure there is exactly one slash between them
string | $parent | parent path |
string | $child | child path |
Definition at line 1666 of file Class.ServerDav.php.
generate separator headers for multipart response
first and last call happen without parameters to generate the initial header and closing sequence, all calls inbetween require content mimetype, start and end byte position and optionaly the total byte length of the requested resource
string | mimetype |
int | start byte position |
int | end byte position |
int | total resource byte size |
Definition at line 746 of file Class.ServerDav.php.
_new_locktoken | ( | ) |
create a new opaque lock token as defined in RFC2518
void |
Definition at line 1291 of file Class.ServerDav.php.
_new_uuid | ( | ) |
generate Unique Universal IDentifier for lock token
void |
Definition at line 1269 of file Class.ServerDav.php.
_prop_encode | ( | $text | ) |
UTF-8 encode property values if not already done so
string | text to encode |
Definition at line 1621 of file Class.ServerDav.php.
_slashify | ( | $path | ) |
Slashify - make sure path ends in a slash
string | directory path |
Definition at line 1639 of file Class.ServerDav.php.
_unslashify | ( | $path | ) |
Unslashify - make sure path doesn't in a slash
string | directory path |
Definition at line 1652 of file Class.ServerDav.php.
_urldecode | ( | $path | ) |
private version of PHP urldecode
not really needed but added for completenes
string | URL to decode |
Definition at line 1611 of file Class.ServerDav.php.
_urlencode | ( | $url | ) |
private minimalistic version of PHP urlencode()
only blanks and XML special chars must be encoded here full urlencode() encoding confuses some clients ...
string | URL to encode |
Definition at line 1598 of file Class.ServerDav.php.
http_COPY | ( | ) |
COPY method handler
void |
Definition at line 981 of file Class.ServerDav.php.
http_DELETE | ( | ) |
DELETE method handler
void |
Definition at line 949 of file Class.ServerDav.php.
http_GET | ( | ) |
GET method handler
void |
Definition at line 593 of file Class.ServerDav.php.
http_HEAD | ( | ) |
HEAD method handler
void |
Definition at line 778 of file Class.ServerDav.php.
http_LOCK | ( | ) |
LOCK method handler
void |
Definition at line 1014 of file Class.ServerDav.php.
http_MKCOL | ( | ) |
MKCOL method handler
void |
Definition at line 574 of file Class.ServerDav.php.
http_MOVE | ( | ) |
MOVE method handler
void |
Definition at line 996 of file Class.ServerDav.php.
http_OPTIONS | ( | ) |
OPTIONS method handler
The OPTIONS method handler creates a valid OPTIONS reply including Dav: and Allowed: heaers based on the implemented methods found in the actual instance
void |
Definition at line 240 of file Class.ServerDav.php.
http_PROPFIND | ( | ) |
PROPFIND method handler
void |
Definition at line 271 of file Class.ServerDav.php.
http_PROPPATCH | ( | ) |
PROPPATCH method handler
void |
Definition at line 521 of file Class.ServerDav.php.
http_PUT | ( | ) |
PUT method handler
void |
Definition at line 822 of file Class.ServerDav.php.
http_status | ( | $status | ) |
set HTTP return status and mirror it in a private header
string | status code and message |
Definition at line 1577 of file Class.ServerDav.php.
http_UNLOCK | ( | ) |
UNLOCK method handler
void |
Definition at line 1110 of file Class.ServerDav.php.
lockdiscovery | ( | $path | ) |
Generate lockdiscovery reply from checklock() result
string | resource path to check |
Definition at line 1536 of file Class.ServerDav.php.
mkprop | ( | ) |
helper for property element creation
string | XML namespace (optional) |
string | property name |
string | property value |
Definition at line 1222 of file Class.ServerDav.php.
ServeRequest | ( | ) |
Serve WebDAV HTTP request
dispatch WebDAV HTTP request to the apropriate method handler
void |
Definition at line 133 of file Class.ServerDav.php.
$_http_status = "200 OK" |
Definition at line 90 of file Class.ServerDav.php.
$_if_header_uris = array() |
Definition at line 84 of file Class.ServerDav.php.
$_prop_encoding = "utf-8" |
Definition at line 96 of file Class.ServerDav.php.
$_SERVER |
Definition at line 105 of file Class.ServerDav.php.
$base_uri |
Definition at line 60 of file Class.ServerDav.php.
$dav_powered_by = "" |
Definition at line 78 of file Class.ServerDav.php.
$debug = false |
Definition at line 46 of file Class.ServerDav.php.
$http_auth_realm = "PHP WebDAV" |
Definition at line 72 of file Class.ServerDav.php.
$path |
Definition at line 66 of file Class.ServerDav.php.
$uri |
Definition at line 54 of file Class.ServerDav.php.