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

Public Member Functions

 __construct ($dbaccess="")
 
 ServeRequest ()
 
 check_auth ($type, $user, $pass)
 
 PROPFIND (&$options, &$files)
 
 readfolder ($fspath, $onlyfld=false)
 
 path2id ($fspath, &$vid=null)
 
 getFilesProperties (&$doc)
 
 docpropinfo (&$doc, $path, $firstlevel)
 
 vidpropinfo ($path, $docid, $withfile=false)
 
 _can_execute ($name, $path=false)
 
 _mimetype ($fspath)
 
 GET (&$options)
 
 GetDir ($fspath, &$options)
 
 PUT (&$options)
 
 MKCOL ($options)
 
 DELETE ($options)
 
 MOVE ($options)
 
 COPY ($options)
 
 PROPPATCH (&$options)
 
 LOCK (&$options)
 
 UNLOCK (&$options)
 
 checkLock ($path)
 
 create_database ()
 
 addsession ($sessid, $vid, $docid, $owner, $expire=0)
 
 getLogin ($docid, $vid, $sessid)
 
 getSession ($docid, $vid, $owner)
 
 mybasename ($p)
 
 cleanDeleted ($fid)
 
 setFolderMaxItem ($limit)
 
 getFolderMaxItem ()
 
- Public Member Functions inherited from HTTP_WebDAV_Server
 __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

 $base = ""
 
 $db_freedom = ""
 
 $type = 'webdav'
 
 $racine = 9
 
 $db_webdav = "dbname=webdav user=anakeen"
 
- Data Fields inherited from HTTP_WebDAV_Server
 $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

Filesystem access using WebDAV

public

Definition at line 22 of file Class.FdlDav.php.

Constructor & Destructor Documentation

__construct (   $dbaccess = "")

Definition at line 66 of file Class.FdlDav.php.

Member Function Documentation

_can_execute (   $name,
  $path = false 
)

detect if a given program is found in the search PATH

helper function used by _mimetype() to detect if the external 'file' utility is available

Parameters
stringprogram name
stringoptional search path, defaults to $PATH
Returns
bool true if executable program found in path

Definition at line 453 of file Class.FdlDav.php.

_mimetype (   $fspath)

try to detect the mime type of a file

Parameters
stringfile path
Returns
string guessed mime type

Definition at line 493 of file Class.FdlDav.php.

+ Here is the call graph for this function:

addsession (   $sessid,
  $vid,
  $docid,
  $owner,
  $expire = 0 
)

create database tables for property and lock storage

Parameters
void
Returns
bool true on success

Definition at line 1273 of file Class.FdlDav.php.

check_auth (   $type,
  $user,
  $pass 
)

No authentication is needed here

private

Parameters
stringHTTP Authentication type (Basic, Digest, ...)
stringUsername
stringPassword
Returns
bool true on successful authentication

Definition at line 106 of file Class.FdlDav.php.

checkLock (   $path)

checkLock() helper

Parameters
stringresource path to check for locks
Returns
bool true on success

Definition at line 1210 of file Class.FdlDav.php.

+ Here is the call graph for this function:

cleanDeleted (   $fid)

Definition at line 1333 of file Class.FdlDav.php.

COPY (   $options)

COPY method handler

Parameters
arraygeneral parameter passing array
Returns
bool true on success

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

+ Here is the call graph for this function:

create_database ( )

create database tables for property and lock storage

Parameters
void
Returns
bool true on success

Definition at line 1262 of file Class.FdlDav.php.

DELETE (   $options)

DELETE method handler

Parameters
arraygeneral parameter passing array
Returns
bool true on success

Definition at line 801 of file Class.FdlDav.php.

+ Here is the call graph for this function:

docpropinfo ( $doc,
  $path,
  $firstlevel 
)

Definition at line 269 of file Class.FdlDav.php.

+ Here is the call graph for this function:

GET ( $options)

GET method handler

Parameters
arrayparameter passing array
Returns
bool true on success

Definition at line 562 of file Class.FdlDav.php.

+ Here is the call graph for this function:

GetDir (   $fspath,
$options 
)

GET method handler for directories

This is a very simple mod_index lookalike. See RFC 2518, Section 8.4 on GET/HEAD for collections

Parameters
stringdirectory path
Returns
void function has to handle HTTP response itself

Definition at line 622 of file Class.FdlDav.php.

getFilesProperties ( $doc)
Parameters
Doc$doc
Returns
array

Definition at line 248 of file Class.FdlDav.php.

getFolderMaxItem ( )

Get the currently applied maximum number

Returns
int the current limit

Definition at line 1361 of file Class.FdlDav.php.

getLogin (   $docid,
  $vid,
  $sessid 
)

get login from session

Parameters
void
Returns
bool true on success

Definition at line 1294 of file Class.FdlDav.php.

getSession (   $docid,
  $vid,
  $owner 
)

get session from login

Parameters
int$dociddocument identifier
int$vidvault identifier
string$owneruser login
Returns
string

Definition at line 1314 of file Class.FdlDav.php.

LOCK ( $options)

LOCK method handler

Parameters
arraygeneral parameter passing array
Returns
bool true on success

Definition at line 1131 of file Class.FdlDav.php.

+ Here is the call graph for this function:

MKCOL (   $options)

MKCOL method handler

Parameters
arraygeneral parameter passing array
Returns
bool true on success

Definition at line 749 of file Class.FdlDav.php.

+ Here is the call graph for this function:

MOVE (   $options)

MOVE method handler

Parameters
arraygeneral parameter passing array
Returns
bool true on success

Definition at line 853 of file Class.FdlDav.php.

+ Here is the call graph for this function:

mybasename (   $p)

Definition at line 1326 of file Class.FdlDav.php.

path2id (   $fspath,
$vid = null 
)

Definition at line 200 of file Class.FdlDav.php.

+ Here is the call graph for this function:

PROPFIND ( $options,
$files 
)

PROPFIND method handler

Parameters
array$optionsgeneral parameter passing array
array$filesreturn array for file properties
Returns
bool true on success

Definition at line 117 of file Class.FdlDav.php.

+ Here is the call graph for this function:

PROPPATCH ( $options)

PROPPATCH method handler

Parameters
arraygeneral parameter passing array
Returns
bool true on success

Definition at line 1092 of file Class.FdlDav.php.

+ Here is the call graph for this function:

PUT ( $options)

PUT method handler

Parameters
arrayparameter passing array
Returns
bool true on success

Definition at line 645 of file Class.FdlDav.php.

+ Here is the call graph for this function:

readfolder (   $fspath,
  $onlyfld = false 
)

Definition at line 146 of file Class.FdlDav.php.

+ Here is the call graph for this function:

ServeRequest ( )

Serve a webdav request

public

Parameters
string

Definition at line 81 of file Class.FdlDav.php.

setFolderMaxItem (   $limit)

Set the maximum number of documents returned when listing content of a folder

Parameters
int$limitlimit value (value < 0 for no limit)
Returns
int the current limit

Definition at line 1348 of file Class.FdlDav.php.

UNLOCK ( $options)

UNLOCK method handler

Parameters
arraygeneral parameter passing array
Returns
bool true on success

Definition at line 1180 of file Class.FdlDav.php.

+ Here is the call graph for this function:

vidpropinfo (   $path,
  $docid,
  $withfile = false 
)

virtual path

Definition at line 373 of file Class.FdlDav.php.

+ Here is the call graph for this function:

Field Documentation

$base = ""

Definition at line 32 of file Class.FdlDav.php.

$db_freedom = ""

Definition at line 34 of file Class.FdlDav.php.

$db_webdav = "dbname=webdav user=anakeen"

Definition at line 63 of file Class.FdlDav.php.

$racine = 9

Definition at line 48 of file Class.FdlDav.php.

$type = 'webdav'

Type : 'webdav' or 'freedav'

Default type is 'webdav'

Definition at line 40 of file Class.FdlDav.php.


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