abstract public function RoomsCalendar::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
Overrides RoomsCalendarInterface::getEvents
2 methods override RoomsCalendar::getEvents()
- UnitCalendar::getEvents in modules/
rooms_availability/ includes/ rooms_availability.unit_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
- UnitPricingCalendar::getEvents in modules/
rooms_pricing/ includes/ rooms_pricing.unit_pricing_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.inc, line 92
Class
- RoomsCalendar
- Handles querying and updating the availability information relative to a single bookable unit.
Code
public abstract function getEvents(DateTime $start_date, DateTime $end_date);