Closed spib closed 8 years ago
Take a look at the find()
method of the indexed collection and of basic collection. Indexed Collection only stores and finds events in an array with keys derived from eventBegin. The basic collection actually has some logic in its find() method to lookup period->containsEvent() or event->contains(date) etc.
So, your $eventCollection->find($day)
only finds events under its array this->events[$day].
$collection = $calendar->getEvents($period);
// or
$array = $provider->getEvents($DateTimeStart, $DateTimeEnd);
Thanks, this is an old issue and I'm no longer using this module so the issue can be closed
Hi,
How do you show multi-day events on a calendar? The following piece of code correctly shows events which start on a particular date, but it doesn't show events which span multiple days. I'm using the Indexed Event Collection.
Thanks