From: cyberic <cyb...@gm...> - 2005-06-01 09:32:48
|
Hello I have started to work on the possibility to edit and add events. My edition page is based on event.php, but the fields are editable. I would like to ask some questions in order to do achieve my goals the best= way. 1. What is there exactly in master_array() at position -1, -2 etc? 2. When an event is parsed, what happens to the fields that are not parsed, as x-tags ? Because when a user will edit an event, I thinks these fields will have to be reinjected, even if they are not taken into account by phpIcalendar. 3. How can I get the filename from the calendar name? ie calendar 'mycal' is in file 'mycal.ics' ? 4. Is it possible to get the start position in the calendar file for a particular event? ie the event with UID=3DXXX is between at character 10 to 30? 5. How would you suggest to generate unique uids ? I think I will use md5(time())) By the way, is there a list of every uid in a calendar, in order to verify that any new uid is unique? 6. To write an event back to the file, I think about using classes from http://sourceforge.net/project/showfiles.php?group_id=3D70761&package_= id=3D70129, but unfortunately, these classes can only write a calendar, but not parse i= t... There are also some claases at http://sourceforge.net/project/showfiles.php?group_id=3D22834 (0.3.0-beta3 release) in lib/ical, but they cannot parse a file nor write a new one... But the best way would be to add a method in phpIcalendar to write an event back to a file... The problem is that I do not know the exact structure of an event in phpIcalendar. Any doc ? PS: I've seen Leon is working on adding events too. I am ready, of course, to work with him! Please answer my questions and tell me what you think about it. |