Re: Call for Votes: PEAR::Calendar
| From: | Greg Beaver | Date: | Fri, 24 Oct 2003 05:23:20 +0000 |
| Subject: | Re: Call for Votes: PEAR::Calendar | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-22938@lists.php.net to get a copy of this message | ||
Harry,
Nice examples, good looking code. I have run into a problem testing the package that isn't your fault :). Namely, the web installer will not allow one to install packages that aren't available through pear.php.net. I want to test the package on my provider, as their system is slower than mine (I get 0.3 seconds build time on the calendar).
The calendar I have at chiaraquartet.net takes about 7 seconds to build a 12-month calendar. This is due to the database access that is needed in order to make the calendar at all useful. I don't know how much of the deadweight is from DB access or html/calendar generation, but I was hoping to test this before voting. This is my only concern with performance - I need a very easy way to plug in data to the dates. My first look says this is possible, but I can't give you a good informed evaluation without more time to test this.
In addition, if you could write a 1-page tutorial on what class combinations are useful for typical problems, that would be very helpful in my limited time to make sure I (and maybe others like me) understand which class is designed for what task.
As always, the code itself is very clever and tight, but you knew that ;)
Greg
Harry Fuecks wrote:
Proposed Name: Calendar Proposed Category: Calendar (new namespace) PEAR::Calendar is an package for generating Calendars as data structures (it does not render content) allowing you to easily connect up a user interface with an underlying data store (such as MySQL). It provides a simple API to make generating a calendar much like querying a database - just pick a date then render the output with a loop. It's also extensible so should (in theory) be a foundation for generating practically any calendar you can think of (the challenge is a Chinese calendar). PEAR package: ------------- http://prdownloads.sourceforge.net/htmlsax/Calendar-0.1.tgz?download Extensive README: ----------------- http://htmlsax.sourceforge.net/calendar/ API documentation: ------------------ http://htmlsax.sourceforge.net/calendar/api/ Examples: --------- http://htmlsax.sourceforge.net/calendar/examples/ This follows the earlier package proposal: http://marc.theaimsgroup.com/?l=pear-dev&m=106045306402489&w=2 to which the issues raised have been addressed (it's now extensible and no longer tied to Unix timestamps). Also package name change on recommendation, from Date_Calendar to Calendar One thing that would be very good would be volunteers willing to help maintain the package. Timewise there's never enough. [PS: Please note I can only post on the mailing list in the evenings...] Thanks, Harry