You are here

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

Returns event in a format amenable to FullCalendar display or generally sensible JSON.

Parameters

int $style: The visualization style.

string $unit_name: The bookable unit name.

Return value

array The processed event, in JSON ready format.

1 method overrides BookingEventInterface::formatJson()
BookingEvent::formatJson in modules/rooms_availability/includes/rooms_availability.booking_event.inc
Returns event in a format amenable to FullCalendar display or generally sensible JSON.

File

modules/rooms_availability/includes/rooms_availability.booking_event_interface.inc, line 36
Interface BookingEventInterface

Class

BookingEventInterface
@file Interface BookingEventInterface

Code

public function formatJson($style = ROOMS_AVAILABILITY_ADMIN_STYLE, $unit_name = '');