eZPublish  4.4
eZWebDAVFileServer Class Reference

A simple file based WebDAV server. More...

+ Inheritance diagram for eZWebDAVFileServer:
+ Collaboration diagram for eZWebDAVFileServer:

Public Member Functions

 copy ($source, $destination)
 
 delete ($target)
 
 eZWebDAVFileServer ()
 
 get ($target)
 
 getCollectionContent ($dir, $depth=false, $properties=false)
 
 head ($target)
 
 mkcol ($target)
 
 move ($source, $destination)
 
 put ($target, $tempFile)
 
- Public Member Functions inherited from eZWebDAVServer
 copy ($source, $destination)
 
 delete ($target)
 
 eZWebDAVServer ()
 
 flushXMLBody ()
 
 get ($target)
 
 getCollectionContent ($collection, $depth=false, $properties=false)
 
 head ($target)
 
 mkcol ($target)
 
 move ($source, $destination)
 
 options ($target)
 
 processClientRequest ()
 
 put ($target, $tempFile)
 
 setServerRoot ($rootDir)
 
 setupXMLOutputCharset ()
 
 setXMLOutputCharset ($charset)
 
 xmlBody ()
 
 XMLOutputCharset ()
 

Additional Inherited Members

- Static Public Member Functions inherited from eZWebDAVServer
static appendLogEntry ($logString, $label=false)
 
 dataCharset ()
 
static isLoggingEnabled ()
 
 recode ($string, $fromCharset, $toCharset, $stop=false)
 
static rootDirectory ()
 
static tempDirectory ()
 
 userAgentPattern ()
 
 userAgentSettings ()
 
- Public Attributes inherited from eZWebDAVServer
 $ServerRootDir = ""
 
 $XMLBodyRead = false
 
 $XMLOutputCharset = 'utf-8'
 
const CTIME_FORMAT = "Y-m-d\\TH:i:s\\Z"
 
const FAILED_BAD_GATEWAY = 36
 
const FAILED_CONFLICT = 33
 
const FAILED_EXISTS = 32
 
const FAILED_FORBIDDEN = 30
 
const FAILED_LOCKED = 35
 
const FAILED_NOT_FOUND = 31
 
const FAILED_PRECONDITION = 34
 
const FAILED_STORAGE_FULL = 37
 
const FAILED_UNSUPPORTED = 38
 
const MTIME_FORMAT = "D, d M Y H:i:s"
 
const OK = 10
 
const OK_CREATED = 12
 
const OK_OVERWRITE = 13
 
const OK_SILENT = 11
 
const TEMP_FILE_PREFIX = "eZWebDAVUpload_"
 
- Protected Member Functions inherited from eZWebDAVServer
 handle ($status)
 
 headers ()
 
 outputCollectionContent ($collection, $requestedProperties)
 
 outputOptions ($options)
 
 outputSendDataToClient ($output, $headers_only=false)
 
 processURL ($url)
 
 storeUploadedFile ($target)
 

Detailed Description

A simple file based WebDAV server.

Enables local file administration/management through the WebDAV interface.

Usage:

$myserver = new eZWebDAVFileServer();
$myserver->processClientRequest();

Member Function Documentation

eZWebDAVFileServer::copy (   $source,
  $destination 
)

Copies the file or directory $source to $destination.

eZWebDAVFileServer::delete (   $target)

Removes the directory or file $target

eZWebDAVFileServer::eZWebDAVFileServer ( )
eZWebDAVFileServer::get (   $target)
Returns
An information structure with the filename.
eZWebDAVFileServer::getCollectionContent (   $dir,
  $depth = false,
  $properties = false 
)

Finds all files and directories in the directory $dir and return an element list of it.

eZWebDAVFileServer::head (   $target)

Returns if the file $target exists or not

eZWebDAVFileServer::mkcol (   $target)

Creates the directory $target

eZWebDAVFileServer::move (   $source,
  $destination 
)

Moves the file or directory $source to $destination by trying to rename it.

eZWebDAVFileServer::put (   $target,
  $tempFile 
)

Renames the temp file $tempFile to $target.


The documentation for this class was generated from the following file: