You are here

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

Get a set of PricingEvent between start_date and end_date filtered by days.

Parameters

int $unit_id: The unit id to calculate.

int $amount: The initial amount.

DateTime $start_date: The start date.

DateTime $end_date: The end date.

string $operation: The operation to perform.

int $days: The event duration.

Return value

PricingEventInterface[] The events in that range of dates

1 method overrides UnitPricingCalendarInterface::calculatePricingEvents()
UnitPricingCalendar::calculatePricingEvents in modules/rooms_pricing/includes/rooms_pricing.unit_pricing_calendar.inc
Get a set of PricingEvent between start_date and end_date filtered by days.

File

modules/rooms_pricing/includes/rooms_pricing.unit_pricing_calendar_interface.inc, line 48
Contains UnitPricingCalendarInterface.

Class

UnitPricingCalendarInterface
Handles querying and updating the pricing information relative to a single bookable unit.

Code

public function calculatePricingEvents($unit_id, $amount, DateTime $start_date, DateTime $end_date, $operation, $days);