You are here

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

Constructs a BookingEvent instance.

Parameters

int $unit_id: The bookable unit.

int $event_id: The event ID.

DateTime $start_date: The start date of the event.

DateTime $end_date: The end date of the event.

File

modules/rooms_availability/includes/rooms_availability.booking_event.inc, line 29
Class BookingEvent

Class

BookingEvent
@file Class BookingEvent

Code

public function __construct($unit_id, $event_id, $start_date, $end_date) {
  $this->unit_id = $unit_id;
  $this->id = $event_id;
  $this->start_date = $start_date;
  $this->end_date = $end_date;
}