Home » Date and Time » Calendar
A package for building Calendar data structures (irrespective of output)
This package is unmaintained.
Download latest release 0.5.5 (there might be newer Composer installable version)
License: PHP
Description
Calendar provides an API for building Calendar data structures. Using
the simple iterator and it's "query" API, a user interface can easily be
built on top of the calendar data structure, at the same time easily connecting it
to some kind of underlying data store, where "event" information is
being held.
It provides different calculation "engines" the default being based on
Unix timestamps (offering fastest performance) with an alternative using PEAR::Date
which extends the calendar past the limitations of Unix timestamps. Other engines
should be implementable for other types of calendar (e.g. a Chinese Calendar based
on lunar cycles).
Documentation
Maintainers
- Harry Fuecks (hfuecks) — lead, active
- Lorenzo Alberton (quipo) — lead, active
- Greg Beaver (cellog) — helper, active
Dependencies
Required
- PHP (>= 5.0.0)
- PEAR Installer (>= 1.5.0)
Optional
Releases
- 0.5.5 (beta, 2010-06-24)
Release notes
License: PHP
* fixed bug #17182: fixed Calendar_Month_Weeks' empty day handling
(bug introduced in v.0.5.4)
* PHP5 fixes - 0.5.4 (beta, 2008-12-12)
Release notes
License: PHP
* fixed return by reference NOTICE in Decorator
* fixed bug #8758: fixed Calendar_Week::thisYear() according the ISO-8601 standard
* fixed bug #12542: Calendar_Util_Textual::orderedWeekdays() doesn't consider $firstDay
* added new tests and fixed test to consider the CALENDAR_FIRST_DAY_OF_WEEK constant
* fixed getWeekNInYear() in the PearDate engine with new Date package
* request #2642: added Calendar::isToday() method
* switched to package.xml v.2
* updated header comment blocks according to the Coding Standards - 0.5.3 (beta, 2005-11-06)
- 0.5.2 (beta, 2004-08-16)
Release notes
License: PHP
* Small refactoring in the date engines to significantly reduce the number
of date() calls
* make url default separator xhtml compliant (& => &)
* fix bug #1798 with week selection
* fix bug #1995: thisWeek, prevWeek, nextWeek were not affected when a new
timestamp was set (thanks to johnschaefer at gmx dot de)
* fix bug in return value from Calendar_Week::thisWeek and n_in_month
* getMinYears() returned 1970 on all platforms (thanks to Andy Crain)
* added some new examples
* Moved logic from Calendar_Decorator_Uri and Calendar_Decorator_Textual to
Calendar_Util_Uri and Calendar_Util_Textual (BC preserved) - offers better
performance, reducing number of decorators required
* extended engine interface for week related methods to meet rare use cases with
(not yet implemented) calendar engines - 0.5.1 (beta, 2004-05-24)
Release notes
License: PHP
* Fixed bug in Calendar_Week::setSelection():
the "selected" property was set, but not the decorated object.
* Fixed bug in Calendar_Month_[Weekdays|Weeks]:
the number of empty days at the beginning of the month could be
wrong when the adjust() method was called to fix an invalid date. - 0.5 (beta, 2004-01-29)
Release notes
License: PHP
* Added new return-value-formats for each [prev|this|next]*() method
Allowed formats are: 'int', 'timestamp' , 'array' and 'object'. Returns
data of specified type e.g. $Day = $Hour->prevDay('object');
* Added factory for creating calendar objects (in conjunction with above change)
* Added decorator to determine the day of the week for any calendar object
* Minor bug fix in Decorator - 0.4 (beta, 2003-11-22)
Release notes
License: PHP
* Fixed bug in setTimeStamp where year wasn't set
* Fixed bugs and changed API for Calendar_Week
* Added Calendar::adjust method to adjust invalid dates
* Added Calendar_Decorator_Uri to help with building links
* Added Calendar_Decorator_Textual to help fetching month and weekday names
* Added Calendar_Decorator_Wrapper to help apply decorators to built calendar
objects - 0.3 (beta, 2003-10-30)
Release notes
License: PHP
* Fixed bugs in Calendar_Validator for day and month ranges
* Fixed bug with first day of week as 0
* Modified weeks to extend beyond current month with prevWeek() and nextWeek()
* More unit tests - 0.2 (beta, 2003-10-30)
Release notes
License: PHP
First release
Bugs
| ID | Status | Type | Version | Date | Summary |
|---|---|---|---|---|---|
| #169 | Closed | Bug | 2003-10-30 | Calendar and APC problems | |
| #256 | Closed | Bug | 2003-11-15 | Example 11.php does not work. | |
| #273 | Closed | Bug | 2003-11-18 | example 2.php is broken | |
| #751 | Closed | Bug | 2004-02-13 | [Feature Request] Calendar_Day::isWeekend() | |
| #1386 | Bogus | Bug | 2004-05-11 | Multiple entries not possible | |
| #1440 | Closed | Bug | 2004-05-19 | bug in Week class in setSelection | |
| #1798 | Closed | Bug | 2004-07-05 | Week class doesn't support selections that span months | |
| #1880 | Closed | Req | 2004-07-15 | Get month/day values with leading zero | |
| #1995 | Closed | Bug | 2004-07-27 | thisWeek, prevWeek, nextWeek not affected when set new timestamp | |
| #2382 | Closed | Bug | 2004-09-23 | Calendar->thisDay($asTs) returns a timestamp no matter what $asTs is | |
| #2416 | Closed | Bug | 2004-09-30 | Documentation Error | |
| #2418 | Closed | Bug | 2004-09-30 | Year:build() setting start of week does not work | |
| #2630 | Wont fix | Req | 2004-10-27 | Add fetchWeek method to year and month class | |
| #2633 | Closed | Bug | 2004-10-27 | Calendar_Week thisWeek not working | |
| #2640 | Closed | Bug | 2004-10-28 | Problem with the example file 2.php | |
| #2642 | Closed | Req | 2004-10-29 | Add isToday method to Calendar_Month_* | |
| #3073 | Closed | Bug | 2004-12-31 | Calendar_Month_Weekdays, empty days at year change | |
| #3183 | Closed | Bug | 2005-01-12 | Problem with Calendar_Util_textual and gmmktime() | |
| #3300 | No Feedback | Req | 2005-01-26 | Extending decorator payload functionality to Months | |
| #3445 | Closed | Bug | 2005-02-12 | bug in Calendar_Week::thisWeek() | |
| #4694 | Bogus | Req | 2005-06-28 | Missing "optional" for parameter in Calendar::Month::Weekdays-Constructor | |
| #5236 | Bogus | Bug | 2005-08-29 | isEmpty() Bug | |
| #5749 | Bogus | Bug | 2005-10-21 | Current year is actually last year | |
| #8192 | Bogus | Bug | 0.5.3 | 2006-07-12 | Calendar_Week and isEmpty |
| #8447 | Bogus | Bug | 0.5.3 | 2006-08-15 | isValidWeek method missing in class Calendar_Validator |
| #8758 | Closed | Bug | 0.5.3 | 2006-09-21 | Week-class displays wrong year |
| #9425 | Closed | Doc | 0.5.3 | 2006-11-23 | Missing build method in code sample |
| #11035 | Closed | Doc | 0.5.3 | 2007-05-15 | Mistake in Calendar_Week documentation |
| #11036 | Closed | Doc | 0.5.3 | 2007-05-15 | Sample code for Calendar_Week is missing some code |
| #12542 | Closed | Bug | 0.5.3 | 2007-11-28 | Calendar_Util_Textual::orderedWeekdays() doesn't consider $firstDay |
| #13407 | Bogus | Doc | 2008-03-17 | User note that is a documentation problem | |
| #13408 | Duplicate | Doc | 2008-03-17 | User note that is a documentation problem | |
| #17182 | Closed | Bug | 0.5.4 | 2010-03-02 | Calendar/Month/Weeks.php bug |
| #17389 | Closed | Bug | 0.5.4 | 2010-05-12 | PHP Deprecated: Assigning the return value of new by reference is deprecated |
| #17524 | Open | Req | 0.5.5 | 2010-06-26 | Use static keyword for static methods |