You are here

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

Given a date range returns an array of RoomEvents. The heavy lifting really takes place in the getRawDayData function - here we are simply acting as a factory for event objects

Parameters

$start_date: The starting date

$end_date: The end date of our range

Return value

RoomsEventInterface[] An array of BookingEvent objects

1 method overrides RoomsCalendarInterface::getEvents()
RoomsCalendar::getEvents in includes/rooms.calendar.inc
Given a date range returns an array of RoomEvents. The heavy lifting really takes place in the getRawDayData function - here we are simply acting as a factory for event objects

File

includes/rooms.calendar_interface.inc, line 21

Class

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

Code

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