Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
HTTP_WebDAV_Server Class Reference
+ Inheritance diagram for HTTP_WebDAV_Server:
+ Collaboration diagram for HTTP_WebDAV_Server:

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
 

Detailed Description

Definition at line 41 of file Class.ServerDav.php.

Constructor & Destructor Documentation

__construct ( )

Constructor

Parameters
void

Definition at line 114 of file Class.ServerDav.php.

Member Function Documentation

_allow ( )

check for implemented HTTP methods

Parameters
void
Returns
array something

Definition at line 1185 of file Class.ServerDav.php.

_check_auth ( )

check authentication if check is implemented

Parameters
void
Returns
bool true if authentication succeded or not necessary

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

Parameters
void
Returns
string

Definition at line 1447 of file Class.ServerDav.php.

+ Here is the call graph for this function:

_check_lock_status (   $path,
  $exclusive_only = false 
)
Parameters
stringpath of resource to check
boolexclusive 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

Parameters
string$uriURI to check
string$conditionCondition to check for this URI
Returns
bool Condition check result

Definition at line 1493 of file Class.ServerDav.php.

_copymove (   $what)

Definition at line 1130 of file Class.ServerDav.php.

+ Here is the call graph for this function:

_get_ranges ( $options)

parse HTTP Range: header

Parameters
arrayoptions array to store result in
Returns
void

Definition at line 712 of file Class.ServerDav.php.

_if_header_lexer (   $string,
$pos 
)
Parameters
string$stringheader string to parse
int$poscurrent parsing position
Returns
array|false next token (type and value)

Definition at line 1305 of file Class.ServerDav.php.

_if_header_parser (   $str)

parse If: header

Parameters
stringheader string
Returns
array|bool URIs and their conditions

Definition at line 1364 of file Class.ServerDav.php.

+ Here is the call graph for this function:

_mergePathes (   $parent,
  $child 
)

Merge two pathes, make sure there is exactly one slash between them

Parameters
string$parentparent path
string$childchild path
Returns
string merged path

Definition at line 1666 of file Class.ServerDav.php.

+ Here is the call graph for this function:

_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

Parameters
stringmimetype
intstart byte position
intend byte position
inttotal resource byte size

Definition at line 746 of file Class.ServerDav.php.

_new_locktoken ( )

create a new opaque lock token as defined in RFC2518

Parameters
void
Returns
string new RFC2518 opaque lock token

Definition at line 1291 of file Class.ServerDav.php.

+ Here is the call graph for this function:

_new_uuid ( )

generate Unique Universal IDentifier for lock token

Parameters
void
Returns
string a new UUID

Definition at line 1269 of file Class.ServerDav.php.

_prop_encode (   $text)

UTF-8 encode property values if not already done so

Parameters
stringtext to encode
Returns
string utf-8 encoded text

Definition at line 1621 of file Class.ServerDav.php.

_slashify (   $path)

Slashify - make sure path ends in a slash

Parameters
stringdirectory path
Returns
string directory path wiht trailing slash

Definition at line 1639 of file Class.ServerDav.php.

_unslashify (   $path)

Unslashify - make sure path doesn't in a slash

Parameters
stringdirectory path
Returns
string directory path wihtout trailing slash

Definition at line 1652 of file Class.ServerDav.php.

_urldecode (   $path)

private version of PHP urldecode

not really needed but added for completenes

Parameters
stringURL to decode
Returns
string decoded URL

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 ...

Parameters
stringURL to encode
Returns
string encoded URL

Definition at line 1598 of file Class.ServerDav.php.

http_COPY ( )

COPY method handler

Parameters
void
Returns
void

Definition at line 981 of file Class.ServerDav.php.

+ Here is the call graph for this function:

http_DELETE ( )

DELETE method handler

Parameters
void
Returns
void

Definition at line 949 of file Class.ServerDav.php.

+ Here is the call graph for this function:

http_GET ( )

GET method handler

Parameters
void
Returns
void

Definition at line 593 of file Class.ServerDav.php.

+ Here is the call graph for this function:

http_HEAD ( )

HEAD method handler

Parameters
void
Returns
void

Definition at line 778 of file Class.ServerDav.php.

+ Here is the call graph for this function:

http_LOCK ( )

LOCK method handler

Parameters
void
Returns
void

Definition at line 1014 of file Class.ServerDav.php.

+ Here is the call graph for this function:

http_MKCOL ( )

MKCOL method handler

Parameters
void
Returns
void

Definition at line 574 of file Class.ServerDav.php.

+ Here is the call graph for this function:

http_MOVE ( )

MOVE method handler

Parameters
void
Returns
void

Definition at line 996 of file Class.ServerDav.php.

+ Here is the call graph for this function:

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

Parameters
void
Returns
void

Definition at line 240 of file Class.ServerDav.php.

+ Here is the call graph for this function:

http_PROPFIND ( )

PROPFIND method handler

Parameters
void
Returns
void

Definition at line 271 of file Class.ServerDav.php.

+ Here is the call graph for this function:

http_PROPPATCH ( )

PROPPATCH method handler

Parameters
void
Returns
void

Definition at line 521 of file Class.ServerDav.php.

+ Here is the call graph for this function:

http_PUT ( )

PUT method handler

Parameters
void
Returns
void

Definition at line 822 of file Class.ServerDav.php.

+ Here is the call graph for this function:

http_status (   $status)

set HTTP return status and mirror it in a private header

Parameters
stringstatus code and message
Returns
void

Definition at line 1577 of file Class.ServerDav.php.

http_UNLOCK ( )

UNLOCK method handler

Parameters
void
Returns
void

Definition at line 1110 of file Class.ServerDav.php.

+ Here is the call graph for this function:

lockdiscovery (   $path)

Generate lockdiscovery reply from checklock() result

Parameters
stringresource path to check
Returns
string lockdiscovery response

Definition at line 1536 of file Class.ServerDav.php.

mkprop ( )

helper for property element creation

Parameters
stringXML namespace (optional)
stringproperty name
stringproperty value
Returns
array property array

Definition at line 1222 of file Class.ServerDav.php.

ServeRequest ( )

Serve WebDAV HTTP request

dispatch WebDAV HTTP request to the apropriate method handler

Parameters
void
Returns
void

Definition at line 133 of file Class.ServerDav.php.

+ Here is the call graph for this function:

Field Documentation

$_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.


The documentation for this class was generated from the following file:
← centre documentaire © anakeen