Date_Holidays

From: Date: Tue, 10 Aug 2004 12:24:19 +0000
Subject: Date_Holidays
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-32528@lists.php.net to get a copy of this message
Hello everybody. I'm writing because of my proposal: http://pear.php.net/pepr/pepr-proposal-show.php?id=85. What I have done since this proposal is taking the holiday-title translations out of the drivers and putting it into separate data-file in ini-format. Some of you also wanted to have support for iCal ICS files. Well, I've been reading the iCal-RFC (http://www.ietf.org/rfc/rfc2445.txt) and came to the conclusion that it would not make sense to support iCal import in Date_Holidays. Export is something I'm going to implement in the future. The driver-based way in Date_Holidays does not go with the loose collection of events in the iCal files. I think that another Package like PEAR::Date_Events would be more appropriate for this whole iCal thing. In my eyes DH is a package that should allow the user to pick single holidays out of several ones. That would not be possible when importing iCal-events, as they have no identifier like the internal holiday names in DH-drivers. This should be something Date_Events could solve. Reading event-data from a file like iCal or sth. else an fill a calendar with it, based on the event-dates. Some of you may say that it not useful to write driver-classes in PHP when we can use iCal. But as far as I can see, iCal's RRULE property does not support calculation of dates like Easter. The advantage of iCal is that someone can use applications like Mozilla Calendar to enter some events and write them to an iCal file. There's no need to code anything. Let me hear what you think about that, please. Regards, Carsten

« previous php.pear.dev (#32528) next »