PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Date and Time » Calendar » Bug #3300

Extending decorator payload functionality to Months

Details

Request #3300Extending decorator payload functionality to Months
Submitted2005-01-26 13:56 UTC
Fromta5ae at fast-email dot com
Assignedquipo
StatusNo Feedback
PackageCalendar
PHP Version4.3.9
OSWin XP Prof
Roadmaps(Not assigned)

Comments

[2005-01-26 13:56 UTC] ta5ae at fast-email dot com

Description:
------------
I tried to extend the 'Passing a Selection Payload with a Decorator', example 11 from days to months.

However, if you pass an array of custom decorators objects as a selection when building a month, it ignores the selected days.

The reason seems to be that, in the setSelection method, line 103, Month.php, only calendar_day or calendar_decorator are selected.

if ( $class == 'calendar_day' || $class == 'calendar_decorator' )

Would it be possible to remove this check? Other date units seem to be ok without it. Or maybe extend it to check for the parent's class, as a compromise?