https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42310

--- Comment #51 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 203153
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=203153&action=edit
Bug 42310: Refactor Koha::Calendar to use Koha::Calendar::* classes

Replace raw DBI queries in _init() and _holidays() with
Koha::Calendar::WeeklyClosures, RepeatingClosures, SingleClosures,
and Exceptions searches.

The internal data structures remain identical (weekly_closed_days
array, day_month_closed_days hash, _holidays hash with YYYYMMDD
keys) so all consumers (is_holiday, addDuration, next_open_days)
continue to work unchanged.

Signed-off-by: Tomás Cohen Arazi <[email protected]>
Signed-off-by: David Nind <[email protected]>
Signed-off-by: Martin Renvoize <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to