From: Albrecht G. <alb...@ma...> - 2010-04-07 12:39:58
|
Hi Gustavo, this sound pretty reasonable. I suggest to implement the Zend_Webdav_Abstract and to create the webdav part for the files module for PHProjekt 6.1 After this, in a next version we can enhance it with the caldav api. all the best Albrecht > Since many people ask about the WebDAV implementation on P6, let see > what we need for it. > > 1. Server > In P5 we use the PEAR server, that is just a php 4 class that translates > the request into a WebDAV function. > We can make a new server class, using the PEAR one as example, in this > case the steps are: > - Make a new Zend class using the PEAR as model. > - Transform all the PHP4 structure to PHP5. > - Use all as we can the Zend functions. > - Define an Auth method that should be easy to configure. > After that, we will have something like Zend_Webdav_Abstract that will > have all the necessaries function for catch the request and call the > correct function. > > 1.2. Extension > Using the Zend_Webdav_Abstract, we can extend it for make custom servers > like: > 1.2.1. For files -Zend_Webdav_Files- (almost all done in the > Zend_Webdav_Abstract). > > 1.2.2. For events -Zend_Webdav_Caldav- (using the CalDAV RFC). > For the CalDAV class, we need also some extra functions, > first for customized the WebDAV using the CalDAV RFC, and second for > translate the P6 events or "any event data" into a ICAL format, and > vice-versa. > > 1.2.3. Others. > > Other structure can be: > Zend/ > Webdav/ > Abstract.php (Zend_Webdav_Abstract) > Webdav.php (Zend_Webdav extend Zend_Webdav_Abstract) > Caldav.php (Zend_Caldav extend Zend_Webdav_Abstract) > > > About the times, > For 1. can be something like 24 hs. > For 1.2.1 (for files) can be something like 1 hs. > For 1.2.2 (for events) can be something like 12 hs. > > 2. Client > After that we can use the "server", but we need some page that call it, > so the next step is to write a controller that get the request, call the > auth, call the server , and return the response. > This implementation should be done only for P6. > The url can be something like: > index.php/Default/webdav/index > and the controller: Default/WebdavController.php. > We can define other one for the caldav or not. > > About the times, > Can be something like 4 hs. > > About the times, as always, are "code" time, but we must add the test > and some problems that always appear in the process. > > I think that working on it 1 week(40 hs), we can have a good aprouch. > > What do you think? > > Greetings, > Gustavo Solt. > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Phprojekt-devel mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phprojekt-devel |