You are here

abstract protected function RoomsEvent::createEvent in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7

Creates a new event

Parameters

DateTime $start_date: The new event start date.

DateTime $end_date: The new event end date.

Return value

RoomsEventInterface The new event created.

2 calls to RoomsEvent::createEvent()
RoomsEvent::transformToMonthlyEvents in includes/rooms.event.inc
Takes a single event that spans several months and transforms it to monthly events - this assumes that the event is contained within a year
RoomsEvent::transformToYearlyEvents in includes/rooms.event.inc
Takes an event that spans several years and transforms it to yearly events
2 methods override RoomsEvent::createEvent()
BookingEvent::createEvent in modules/rooms_availability/includes/rooms_availability.booking_event.inc
Creates a new event
PricingEvent::createEvent in modules/rooms_pricing/includes/rooms_pricing.pricing_event.inc
Creates a new event

File

includes/rooms.event.inc, line 186

Class

RoomsEvent

Code

protected abstract function createEvent(DateTime $start_date, DateTime $end_date);