abstract public function RoomsCalendar::updateCalendar in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7
Given an array of RoomEvents the calendar is updated with regards to the events that are relevant to the Unit this calendar refers to
Parameters
RoomsEventInterface[] $events: An array of events to update the calendar with
Return value
array An array of response on whether event updates were successful or not
Overrides RoomsCalendarInterface::updateCalendar
2 methods override RoomsCalendar::updateCalendar()
- UnitCalendar::updateCalendar in modules/
rooms_availability/ includes/ rooms_availability.unit_calendar.inc - Given an array of RoomEvents the calendar is updated with regards to the events that are relevant to the Unit this calendar refers to
- UnitPricingCalendar::updateCalendar in modules/
rooms_pricing/ includes/ rooms_pricing.unit_pricing_calendar.inc - Given an array of RoomEvents the calendar is updated with regards to the events that are relevant to the Unit this calendar refers to
File
- includes/
rooms.calendar.inc, line 33
Class
- RoomsCalendar
- Handles querying and updating the availability information relative to a single bookable unit.
Code
public abstract function updateCalendar($events);