You are here

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

Checks if an event is blocked, i.e. cannot be updated. This happens when the event id is in the rooms_booking_locks table and the new event_id is not the same as the one that is locked.

Parameters

BookingEventInterface $event: The event to check if it is blocked.

Return value

bool TRUE if blocked, FALSE otherwise.

1 method overrides UnitCalendarInterface::eventBlocked()
UnitCalendar::eventBlocked in modules/rooms_availability/includes/rooms_availability.unit_calendar.inc
Checks if an event is blocked, i.e. cannot be updated. This happens when the event id is in the rooms_booking_locks table and the new event_id is not the same as the one that is locked.

File

modules/rooms_availability/includes/rooms_availability.unit_calendar_interface.inc, line 37
Handles querying and updating the availability information relative to a single bookable unit.

Class

UnitCalendarInterface
@file Handles querying and updating the availability information relative to a single bookable unit.

Code

public function eventBlocked(BookingEventInterface $event);