interface BookingEventInterface in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7
@file Interface BookingEventInterface
Hierarchy
- interface \RoomsEventInterface
- interface \BookingEventInterface
Expanded class hierarchy of BookingEventInterface
All classes that implement BookingEventInterface
File
- modules/
rooms_availability/ includes/ rooms_availability.booking_event_interface.inc, line 8 - Interface BookingEventInterface
View source
interface BookingEventInterface extends RoomsEventInterface {
/**
* Locks event - updates the rooms_booking_locks table to indicate that this
* event is locked.
*
* @return bool
* TRUE if the event is locked successfully, FALSE if was already blocked.
*/
public function lock();
/**
* Unlocks the event.
*/
public function unlock();
/**
* Returns event in a format amenable to FullCalendar display or generally
* sensible JSON.
*
* @param int $style
* The visualization style.
* @param string $unit_name
* The bookable unit name.
*
* @return array
* The processed event, in JSON ready format.
*/
public function formatJson($style = ROOMS_AVAILABILITY_ADMIN_STYLE, $unit_name = '');
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BookingEventInterface:: |
public | function | Returns event in a format amenable to FullCalendar display or generally sensible JSON. | 1 |
BookingEventInterface:: |
public | function | Locks event - updates the rooms_booking_locks table to indicate that this event is locked. | 1 |
BookingEventInterface:: |
public | function | Unlocks the event. | 1 |
RoomsEventInterface:: |
public | function | Returns the date interval between end and start date. | 1 |
RoomsEventInterface:: |
public | function | Returns the booking end day. | 1 |
RoomsEventInterface:: |
public | function | Returns the booking end month. | 1 |
RoomsEventInterface:: |
public | function | Returns the booking end year. | 1 |
RoomsEventInterface:: |
public | function | Checks if the event starts and ends in the same month. | 1 |
RoomsEventInterface:: |
public | function | Checks if the event starts and ends in the same year. | 1 |
RoomsEventInterface:: |
public | function | Returns the booking start day. | 1 |
RoomsEventInterface:: |
public | function | Returns the booking start month. | 1 |
RoomsEventInterface:: |
public | function | Returns the booking start year. | 1 |
RoomsEventInterface:: |
public | function | Takes a single event that spans several months and transforms it to monthly events - this assumes that the event is contained within a year | 1 |
RoomsEventInterface:: |
public | function | Takes an event that spans several years and transforms it to yearly events | 1 |