DiogenesWebDAV Class Reference

List of all members.

Public Member Functions

 DiogenesWebDAV ()
 _urlencode ($path, $for_html=false)
 check_auth ($type, $user, $pass)
 copy ($options)
 debugInit ($debugfile)
 debug ($func, $msg)
 debugClose ()
 delete ($options)
 fileinfo ($fspath, $uri)
 GET (&$options)
 getRcs ()
 http_PROPFIND ()
 info ($msg)
 kill ($msg)
 log ($action, $data)
 MKCOL ($options)
 move ($options)
 parsePathInfo ($path)
 PROPFIND ($options, &$files)
 proppatch (&$options)
 PUT (&$options)
 ServeRequest ()

Public Attributes

 $barrel
 $debug_handle
 $debug_capture

Detailed Description

Filesystem access using WebDAV

Definition at line 32 of file diogenes.webdav.inc.php.


Member Function Documentation

DiogenesWebDAV::DiogenesWebDAV (  ) 

The constructor

Definition at line 46 of file diogenes.webdav.inc.php.

References debugClose(), and debugInit().

Here is the call graph for this function:

DiogenesWebDAV::_urlencode ( path,
for_html = false 
)

Hack to support barrels on virtualhosts.

Parameters:
path 
for_html 

Definition at line 75 of file diogenes.webdav.inc.php.

DiogenesWebDAV::check_auth ( type,
user,
pass 
)

Perform authentication

Parameters:
type HTTP Authentication type (Basic, Digest, ...)
user Username
pass Password

Definition at line 90 of file diogenes.webdav.inc.php.

DiogenesWebDAV::copy ( options  ) 

Handle a request to copy a file or directory.

Parameters:
options 

Definition at line 111 of file diogenes.webdav.inc.php.

DiogenesWebDAV::debugInit ( debugfile  ) 

Open the debugging log file

Definition at line 123 of file diogenes.webdav.inc.php.

Referenced by DiogenesWebDAV().

DiogenesWebDAV::debug ( func,
msg 
)

Log a debugging message

Definition at line 139 of file diogenes.webdav.inc.php.

Referenced by delete(), GET(), http_PROPFIND(), parsePathInfo(), PROPFIND(), PUT(), and ServeRequest().

DiogenesWebDAV::debugClose (  ) 

Close the debugging log file

Definition at line 152 of file diogenes.webdav.inc.php.

Referenced by DiogenesWebDAV().

DiogenesWebDAV::delete ( options  ) 

Handle a request to delete a file or directory.

Parameters:
options 

Definition at line 166 of file diogenes.webdav.inc.php.

References debug(), Diogenes_Barrel_Page::fromDb(), getRcs(), and parsePathInfo().

Here is the call graph for this function:

DiogenesWebDAV::fileinfo ( fspath,
uri 
)

Return information about a file or directory.

Parameters:
fspath path of the filesystem entry
uri the address at which the item is visible

Definition at line 199 of file diogenes.webdav.inc.php.

Referenced by PROPFIND().

DiogenesWebDAV::GET ( &$  options  ) 

Handle a GET request.

Parameters:
options 

Definition at line 233 of file diogenes.webdav.inc.php.

References debug(), Diogenes_Barrel_Page::fromDb(), parsePathInfo(), and PROPFIND().

Here is the call graph for this function:

DiogenesWebDAV::getRcs (  ) 

Return an RCS handle.

Definition at line 277 of file diogenes.webdav.inc.php.

Referenced by delete(), and PUT().

DiogenesWebDAV::http_PROPFIND (  ) 

PROPFIND method handler

Returns:
void

Definition at line 289 of file diogenes.webdav.inc.php.

References debug().

Here is the call graph for this function:

DiogenesWebDAV::info ( msg  ) 

Report an information. Needed for RCS operations.

Parameters:
msg 
See also:
Diogenes_VCS_RCS

Definition at line 302 of file diogenes.webdav.inc.php.

DiogenesWebDAV::kill ( msg  ) 

Die with a given error message. Needed for RCS operations.

Parameters:
msg 
See also:
Diogenes_VCS_RCS

Definition at line 314 of file diogenes.webdav.inc.php.

DiogenesWebDAV::log ( action,
data 
)

Record an action to the log. Needed for RCS operations.

Parameters:
action 
data 
See also:
Diogenes_VCS_RCS

Definition at line 328 of file diogenes.webdav.inc.php.

DiogenesWebDAV::MKCOL ( options  ) 

Handle an MKCOL (directory creation) request.

Parameters:
options 

Definition at line 339 of file diogenes.webdav.inc.php.

DiogenesWebDAV::move ( options  ) 

Handle a request to move/rename a file or directory.

Parameters:
options 

Definition at line 351 of file diogenes.webdav.inc.php.

DiogenesWebDAV::parsePathInfo ( path  ) 

Break down a PATH_INFO into site, page id and file for WebDAV We accept a missing trailing slash after the directory name.

Parameters:
path the path to parse

Definition at line 364 of file diogenes.webdav.inc.php.

References debug().

Referenced by delete(), GET(), PROPFIND(), PUT(), and ServeRequest().

Here is the call graph for this function:

DiogenesWebDAV::PROPFIND ( options,
&$  files 
)

Handle a PROPFIND request.

Parameters:
options 
files 

Definition at line 395 of file diogenes.webdav.inc.php.

References debug(), fileinfo(), Diogenes_Barrel_Page::fromDb(), and parsePathInfo().

Referenced by GET(), and PUT().

Here is the call graph for this function:

DiogenesWebDAV::proppatch ( &$  options  ) 

Handle a PROPPATCH request.

Parameters:
options 

Definition at line 470 of file diogenes.webdav.inc.php.

DiogenesWebDAV::PUT ( &$  options  ) 

Handle a PUT request.

Parameters:
options 

Definition at line 495 of file diogenes.webdav.inc.php.

References debug(), Diogenes_Barrel_Page::fromDb(), getRcs(), parsePathInfo(), and PROPFIND().

Here is the call graph for this function:

DiogenesWebDAV::ServeRequest (  ) 

Serve a webdav request

Definition at line 550 of file diogenes.webdav.inc.php.

References debug(), and parsePathInfo().

Here is the call graph for this function:


Member Data Documentation

DiogenesWebDAV::$barrel

The Diogenes_Barrel representing the barrel

Definition at line 35 of file diogenes.webdav.inc.php.

DiogenesWebDAV::$debug_handle

Debugging log file handle

Definition at line 38 of file diogenes.webdav.inc.php.

DiogenesWebDAV::$debug_capture

Capture out to log ?

Definition at line 41 of file diogenes.webdav.inc.php.


The documentation for this class was generated from the following file:
Generated on Fri Jan 11 01:20:09 2008 for Diogenes by  doxygen 1.5.1