You are here

abstract public function RoomsCalendar::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]

Overrides RoomsCalendarInterface::getRawDayData

2 methods override RoomsCalendar::getRawDayData()
UnitCalendar::getRawDayData in modules/rooms_availability/includes/rooms_availability.unit_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.
UnitPricingCalendar::getRawDayData in modules/rooms_pricing/includes/rooms_pricing.unit_pricing_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.inc, line 97

Class

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

Code

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