function MerciHours::isClosedDay in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.3
Returns boolean indicating wether the requested day the business is closed.
File
- merci_hours/
includes/ entity.inc, line 197
Class
- MerciHours
- Define a WorkCalendar object with its operations.
Code
function isClosedDay($year, $month, $day) {
$date = new DateObject("{$year}-{$month}-{$day} 00:00:00");
$week_day = self::weekDayName($date);
return !in_array($week_day, $this->week_days);
}