#015368: ezcWebdavServer class doc is wrong

Description:

Hi!

I refer to the documentation which can be found in the "ezcWebdavServer" class docs and at:
http://ezcomponents.org/docs/api/trunk/Webdav/ezcWebdavServer.htmlurl

The docu says something like:
$server = ezcWebdavServer::getInstance();
$server->configurations[] = new ezcWebdavServerConfiguration(
...
);

Which I found not to work. Probably its just outdated.
In my implementation I need to use:

$pathFactory = new ezcWebdavBasicPathFactory("http://example.com/webdav/public/url");
$config = new ezcWebdavServerConfiguration(
'(.*)','ezcWebdavTransport','ezcWebdavXmlTool','ezcWebdavPropertyHandler','ezcWebdavHeaderHandler',$pathFactory
);
$confManager = new ezcWebdavServerConfigurationManager();
$confManager->insertBefore( $config, 0 );
$server->configurations = $confManager;

Probably you want to change it, because it took me some time to go through your code to find out how it works correctly.


Environment:

Operating System:
PHP Version: (please be specific, like '4.4.3' or '5.1.5')
Database and version:
Browser (and version):


Steps to Reproduce:

Classfile:
/ezc/Webdav/src/server.php

Online at:
http://ezcomponents.org/docs/api/trunk/Webdav/ezcWebdavServer.htmlurl


- Attachments

No attachments for this issue.


- Comments

Fixed in rev. #10815.

#262814 by Tobias Schlitt on August 28th, 2009 [Permanent Link]

- History
Properties
Type Bug
Priority Medium
Components Components » Webdav
Documentation
Affects Unknown
Fix Versions 2009.2 sprint 2 - eZ components 2009.2 sprint 2
2009.2alpha1 - eZ components 2009.2alpha1
Reporter Kevin P.
Responsible Tobias Schlitt
Status 0 Closed
Resolution Fixed
Created August 27th, 2009
Updated August 28th, 2009
Resolved August 28th, 2009
 
Navigation [Permanent Link]
Previous Issue
Back to Issues List
Next Issue: #015537
  Graph shows to small and truncated rotated axis labels