Class Horde_Rpc_Webdav
The Horde_Rpc_Webdav class provides a WebDAV implementation of the Horde RPC system.
Copyright 2008-2012 Horde LLC (http://www.horde.org/)
Derived from the HTTP_WebDAV_Server PEAR package: +------------------------------------------------------------------------+ | Portions Copyright 2002-2007 Christian Stocker, Hartmut Holzgraefe | | All rights reserved | | | | Redistribution and use in source and binary forms, with or without | | modification, are permitted provided that the following conditions | | are met: | | | | 1. Redistributions of source code must retain the above copyright | | notice, this list of conditions and the following disclaimer. | | 2. Redistributions in binary form must reproduce the above copyright | | notice, this list of conditions and the following disclaimer in | | the documentation and/or other materials provided with the | | distribution. | | 3. The names of the authors may not be used to endorse or promote | | products derived from this software without specific prior | | written permission. | | | | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | | FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE | | COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, | | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, | | BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | | LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN | | ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | | POSSIBILITY OF SUCH DAMAGE. | +------------------------------------------------------------------------+
Portions Copyright 2004-2012 Horde LLC (http://www.horde.org/)
See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
- Horde_Rpc
- Horde_Rpc_Webdav
Author: Chuck Hagenbuch chuck@horde.org
Author: Ben Klang ben@alkaloid.net
Author: Hartmut Holzgraefe
Author: Christian Stocker
Located at Horde/Rpc/Webdav.php
public
|
#
__construct( Horde_Controller_Request_Http $request, array $params = array() )
WebDav server constructor. |
public
boolean
|
|
public
mixed
|
|
public
string
|
|
public
string|boolean
|
|
public
string|boolean
|
|
public
string|boolean
|
|
public
boolean
|
|
public
string
|
|
public
string
|
|
public
mixed
|
|
public
array
|
|
public
integer
|
|
public
integer
|
|
public
|
|
public
boolean
|
#
check_auth( string $type, string $username, string $password )
Check authentication. We always return true here since we handle permissions based on the resource that's requested, but we do record the authenticated user for later use. |
public
integer
|
#
_checkHTTPcode( integer $code )
Make sure the error code returned in the PEAR_Error object is a valid HTTP response code. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
_multipart_byterange_header( string $mimetype = false, integer $from = false, integer $to = false, integer $total = false )
generate separator headers for multipart response |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
array
|
|
public
array
|
|
public
boolean
|
|
public
string
|
|
public
array
|
|
public
array
|
|
public
|
|
public
|
#
_check_uri_condition( string $uri, string $condition )
Check a single URI condition parsed from an if-header |
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
string
|
|
public
|
|
public
|
|
public
string
|
#
_mergePaths( string $parent, string $child )
Merge two paths, make sure there is exactly one slash between them |
public
|
|
public
integer
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
factory(),
getResponseContentType(),
request(),
sendOutput()
|
string |
CALDAVNS
CalDAV XML namespace |
#
'urn:ietf:params:xml:ns:caldav'
|
public
string
|
$http_auth_realm
Realm string to be used in authentification popups |
#
'Horde WebDAV'
|
public
string
|
$dav_powered_by
String to be used in "X-Dav-Powered-By" header |
#
'Horde WebDAV Server'
|
public
boolean
|
$parseSuccess
success state flag |
#
false
|
public
array
|
$parseProps
found properties are collected here |
#
false
|
public
integer
|
$parseDepth
internal tag nesting depth counter |
#
0
|
public
string
|
$locktype
lock type, currently only "write" |
#
""
|
public
string
|
$lockscope
lock scope, "shared" or "exclusive" |
#
""
|
public
string
|
$owner
lock owner information |
#
""
|
public
boolean
|
$collect_owner
flag that is set during lock owner read |
#
false
|
public
mixed
|
$mode
|
|
public
mixed
|
$current
|
|
public
string
|
$uri
complete URI for this request |
|
public
string
|
$base_uri
base URI for this request |
|
public
string
|
$path
URI path for this request |
|
public
array
|
$_if_header_uris
Remember parsed If: (RFC2518/9.4) header conditions |
#
array()
|
public
string
|
$_http_status
HTTP response status/message |
#
"200 OK"
|
public
array
|
$_SERVER
Copy of $_SERVER superglobal array |
|
public
array
|
$ns_hash
Mapping of XML namespaces to their XML nickname |
#
array('DAV:' => 'D')
|
public
object
|
$_xml
Xml_Element object |
$_params,
$_requestMissingAuthorization,
$_requireAuthorization
|