You are here

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

Given a date range determine the cost of the room over that period.

Parameters

DateTime $start_date: The starting date for the search.

DateTime $end_date: The end date for the search.

int $persons: The number of persons staying in this room.

int $children: The number of children staying in this room.

array $children_ages: Children ages.

Return value

array Array holding full price and booking price of the room for that period.

1 method overrides UnitPricingCalendarInterface::calculatePrice()
UnitPricingCalendar::calculatePrice in modules/rooms_pricing/includes/rooms_pricing.unit_pricing_calendar.inc
Given a date range determine the cost of the room over that period.

File

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

Class

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

Code

public function calculatePrice(DateTime $start_date, DateTime $end_date, $persons = 0, $children = 0, $children_ages = array());