|
Moodle
2.2.1
http://www.collinsharper.com
|
Public Member Functions | |
| HTTP_WebDAV_Server () | |
| 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) | |
| bytes ($str) | |
Data Fields | |
| $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 49 of file Server.php.
| _allow | ( | ) |
check for implemented HTTP methods
| void |
Definition at line 1568 of file Server.php.

| _check_auth | ( | ) |
check authentication if check is implemented
| void |
Definition at line 1630 of file Server.php.

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 1850 of file Server.php.


| _check_lock_status | ( | $ | path, |
| $ | exclusive_only = false |
||
| ) |
| string | path of resource to check |
| bool | exclusive lock? |
Definition at line 1920 of file Server.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 1899 of file Server.php.

| _copymove | ( | $ | what | ) |
Definition at line 1508 of file Server.php.


| _get_ranges | ( | &$ | options | ) |
parse HTTP Range: header
| array | options array to store result in |
Definition at line 1041 of file Server.php.

| _if_header_lexer | ( | $ | string, |
| &$ | pos | ||
| ) |
| string | header string to parse |
| int | current parsing position |
Definition at line 1712 of file Server.php.

| _if_header_parser | ( | $ | str | ) |
parse If: header
| string | header string |
Definition at line 1766 of file Server.php.


| _mergePathes | ( | $ | parent, |
| $ | child | ||
| ) |
Merge two pathes, make sure there is exactly one slash between them
| string | parent path |
| string | child path |
Definition at line 2097 of file Server.php.


| _multipart_byterange_header | ( | $ | mimetype = false, |
| $ | from = false, |
||
| $ | to = false, |
||
| $ | total = false |
||
| ) |
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 1075 of file Server.php.

| _new_locktoken | ( | ) |
create a new opaque lock token as defined in RFC2518
| void |
Definition at line 1696 of file Server.php.

| _new_uuid | ( | ) |
generate Unique Universal IDentifier for lock token
| void |
Definition at line 1666 of file Server.php.
| _prop_encode | ( | $ | text | ) |
UTF-8 encode property values if not already done so
| string | text to encode |
Definition at line 2049 of file Server.php.

| _slashify | ( | $ | path | ) |
Slashify - make sure path ends in a slash
| string | directory path |
Definition at line 2068 of file Server.php.

| _unslashify | ( | $ | path | ) |
Unslashify - make sure path doesn't in a slash
| string | directory path |
Definition at line 2082 of file Server.php.

| _urldecode | ( | $ | path | ) |
private version of PHP urldecode
not really needed but added for completenes
| string | URL to decode |
Definition at line 2038 of file Server.php.

| _urlencode | ( | $ | url | ) |
private minimalistic version of PHP urlencode()
only blanks, percent and XML special chars must be encoded here full urlencode() encoding confuses some clients ...
| string | URL to encode |
Definition at line 2020 of file Server.php.

| bytes | ( | $ | str | ) |
mbstring.func_overload save strlen version: counting the bytes not the chars
| string | $str |
Definition at line 2112 of file Server.php.

| http_COPY | ( | ) |
COPY method handler
| void |
Definition at line 1327 of file Server.php.

| http_DELETE | ( | ) |
DELETE method handler
| void |
Definition at line 1292 of file Server.php.

| http_GET | ( | ) |
GET method handler
| void |
Definition at line 919 of file Server.php.

| http_HEAD | ( | ) |
HEAD method handler
| void |
Definition at line 1114 of file Server.php.

| http_LOCK | ( | ) |
LOCK method handler
| void |
Definition at line 1365 of file Server.php.

| http_MKCOL | ( | ) |
MKCOL method handler
| void |
Definition at line 897 of file Server.php.

| http_MOVE | ( | ) |
MOVE method handler
| void |
Definition at line 1344 of file Server.php.

| http_OPTIONS | ( | ) |
GET implementation
overload this method to retrieve resources from your server
| array | &$params | Array of input and output parameters input
output
|
PUT implementation
| array | &$params |
COPY implementation
| array | &$params |
MOVE implementation
| array | &$params |
DELETE implementation
| array | &$params |
PROPFIND implementation
| array | &$params |
PROPPATCH implementation
| array | &$params |
LOCK implementation
| array | &$params |
UNLOCK implementation
| array | &$params |
overload this method to retrieve and confirm authentication information
| string | type Authentication type, e.g. "basic" or "digest" |
| string | username Transmitted username |
| string | passwort Transmitted password |
overload this method to return shared and exclusive locks active for this resource
| string | resource Resource path to check |
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 503 of file Server.php.

| http_PROPFIND | ( | ) |
PROPFIND method handler
| void |
Definition at line 537 of file Server.php.

| http_PROPPATCH | ( | ) |
PROPPATCH method handler
| void |
Definition at line 839 of file Server.php.

| http_PUT | ( | ) |
PUT method handler
| void |
Definition at line 1160 of file Server.php.

| http_status | ( | $ | status | ) |
set HTTP return status and mirror it in a private header
| string | status code and message |
Definition at line 1996 of file Server.php.

| http_UNLOCK | ( | ) |
UNLOCK method handler
| void |
Definition at line 1482 of file Server.php.

| lockdiscovery | ( | $ | path | ) |
Generate lockdiscovery reply from checklock() result
| string | resource path to check |
Definition at line 1949 of file Server.php.

| mkprop | ( | ) |
helper for property element creation
| string | XML namespace (optional) |
| string | property name |
| string | property value |
Definition at line 1608 of file Server.php.

| ServeRequest | ( | ) |
Serve WebDAV HTTP request
dispatch WebDAV HTTP request to the apropriate method handler
| void |
Definition at line 151 of file Server.php.

| $_http_status = "200 OK" |
Definition at line 102 of file Server.php.
| $_if_header_uris = array() |
Definition at line 95 of file Server.php.
| $_prop_encoding = "utf-8" |
Definition at line 109 of file Server.php.
| $_SERVER |
Definition at line 119 of file Server.php.
| $base_uri |
Definition at line 66 of file Server.php.
| $dav_powered_by = "" |
Definition at line 88 of file Server.php.
| $http_auth_realm = "PHP WebDAV" |
Definition at line 81 of file Server.php.
| $path |
Definition at line 74 of file Server.php.
| $uri |
Definition at line 58 of file Server.php.