You are here

public function RoomsCalendarInterface::getRawDayData in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7

Given a date range it returns all data within that range including the start and end dates of states. The MySQL queries are kept simple and then the data is cleared up.

Parameters

DateTime $start_date: The starting date

DateTime $end_date: The end date of our range

Return value

array An array of the structure data[unitid][year][month][days][d1]..[d31] as week as data[unitid][year][month][unique_states]

1 method overrides RoomsCalendarInterface::getRawDayData()
RoomsCalendar::getRawDayData in includes/rooms.calendar.inc
Given a date range it returns all data within that range including the start and end dates of states. The MySQL queries are kept simple and then the data is cleared up.

File

includes/rooms.calendar_interface.inc, line 38

Class

RoomsCalendarInterface
Handles querying and updating the availability information relative to a single bookable unit.

Code

public function getRawDayData(DateTime $start_date, DateTime $end_date);