Class: Sabre_DAV_Browser_Plugin

Source Location: /includes/classes/SabreDAV/lib/Sabre/DAV/Browser/Plugin.php

Class Overview [line 19]

Sabre_DAV_ServerPlugin
   |
   --Sabre_DAV_Browser_Plugin

Browser Plugin

Author(s):

  • Evert Pot (http://www.rooftopsolutions.nl/)

Version:

  • $Id$

Copyright:

  • Copyright (C) 2007-2010 Rooftop Solutions. All rights reserved.

Variables

Constants

Methods


Inherited Variables

Inherited Constants

Inherited Methods

Class: Sabre_DAV_ServerPlugin

Sabre_DAV_ServerPlugin::getFeatures()
This method should return a list of server-features.
Sabre_DAV_ServerPlugin::getHTTPMethods()
Use this method to tell the server this plugin defines additional HTTP methods.
Sabre_DAV_ServerPlugin::initialize()
This initializes the plugin.


Class Details

Browser Plugin

This plugin provides a html representation, so that a WebDAV server may be accessed using a browser.

The class intercepts GET requests to collection resources and generates a simple html index. It's not really pretty though, extend to skin this listing.

Tags:

[ Top ]


Class Variables

$enablePost =  true

[line 33]

enableEditing

Tags:

  • access - protected

Type: bool

Overrides:

[ Top ]

$server

[line 26]

reference to server class

Tags:

  • access - protected

Type: Sabre_DAV_Server

Overrides:

[ Top ]


Class Methods

__construct

void __construct( [bool $enablePost = true])

[line 44]

Creates the object.

By default it will allow file creation and uploads. Specify the first argument as false to disable this

Tags:

  • access - public

Parameters:

  • bool $enablePost -

[ Top ]

escapeHTML

void escapeHTML( string $value)

[line 136]

Escapes a string for html.

Tags:

  • access - public

Parameters:

  • string $value -

[ Top ]

generateDirectoryIndex

string generateDirectoryIndex( string $path)

[line 148]

Generates the html directory index for a given url

Tags:

  • access - public

Parameters:

  • string $path -

[ Top ]

httpGetInterceptor

bool httpGetInterceptor( string $method)

[line 69]

This method intercepts GET requests to collections and returns the html

Tags:

  • access - public

Parameters:

  • string $method -

[ Top ]

httpPOSTHandler

bool httpPOSTHandler( string $method)

[line 95]

Handles POST requests for tree operations

This method is not yet used.

Tags:

  • access - public

Parameters:

  • string $method -

[ Top ]

initialize

void initialize( Sabre_DAV_Server $server)

[line 56]

Initializes the plugin and subscribes to events

Tags:

  • access - public

Overrides Sabre_DAV_ServerPlugin::initialize() (This initializes the plugin.)

Parameters:

[ Top ]


Class Constants


Documentation generated on Mon, 31 May 2010 12:53:47 -0400 by phpDocumentor 1.4.3