You are here

function MerciHours::isOpenDay in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.3

Returns boolean indicating wether the requested day the business is open.

File

merci_hours/includes/entity.inc, line 188

Class

MerciHours
Define a WorkCalendar object with its operations.

Code

function isOpenDay($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);
}