User:Ekkinox

From DAViCal Wiki

Jump to: navigation, search

Some ideas for AWL ical parser enhancement :

remake this with some object oriented code

It already is object oriented. The iCalendar object is comprised of iCalComponent objects and iCalProperty objects. iCalComponent objects are constructed from iCalProperty objects. Karora 09:19, 31 May 2008 (UTC)

review the parser's output engine

because :

Currently, the parser outputs an assoc array, which keys are the ical lines values :

$out = array('DESCRIPTION'=>'desc','LOCATION'=>'somewhere',...)

The big problem with it is that where a property might occur multiple times (for EXDATE by example, in ics RFC, 2 exeptions dates will take two EXDATE lines in the ics stream), only the last value is kept, due to the associativity of the array.

A solution may be outputting a 2D array (or more depth if needed), like this :

$out = array('DESCRIPTION'=>'desc','LOCATION'=>'somewhere','EXDATE'=>array(1=>'20080101T000000Z',1=>'20080102T000000Z'), .....)
Not an ideal solution, I think. The parser should return an iCalendar object. In the iCalProperty object the name is part of the object data, not the array reference of the iCalComponent that contains it. Multiple properties of the same name are handled just fine. Karora 09:19, 31 May 2008 (UTC)

making an Web client outputting module will be suitable, because in this case, the parser will ba able to send some JSON streams, enhanced operability with some Web application that use JavaScript by example

I think that any JSON conversion should be separate - part of what a JSON wrapper would do. Karora 09:19, 31 May 2008 (UTC)

in the RRULE.php file, maybe review some internal working, to deal with range requests, because t this time, the RRULE date generator outputs all the dates of a RRULE rule, if we only need the RRULE dates of a reccurent event for a given week, some useless work is done.

I'll look into a way of retrieving an array of iCalDate occurring between two dates. Karora 09:19, 31 May 2008 (UTC)

Some other ideas for a php caldav client

maybe, using Curl to send caldav requests, rewrite it for adding SSL handling (not supported at this time), because SSL will surely be asked by some users later.

The inc/caldav-client.php included in DAViCal does use curl and should also support SSL just fine. Karora 09:19, 31 May 2008 (UTC)