rooms_pricing.pricing_event_interface.inc in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7
A pricing event represent a price over a set of continuous dates. As soon as the price changes that is a different pricing event
File
modules/rooms_pricing/includes/rooms_pricing.pricing_event_interface.incView source
<?php
/**
* @file
* A pricing event represent a price over a set of continuous dates. As soon as
* the price changes that is a different pricing event
*/
interface PricingEventInterface extends RoomsEventInterface {
/**
* Applies an operation against a Price event.
*
* @param int $amount
* The operation amount.
* @param string $operation
* The operation type.
* @param int $days
* The number of days the event lasts.
*/
public function applyOperation($amount, $operation);
/**
* Returns event in a format amenable to FullCalendar display or generally
* sensible json.
*
* @return array
* The processed event, in JSON ready format.
*/
public function formatJson();
}
Interfaces
Name | Description |
---|---|
PricingEventInterface | @file A pricing event represent a price over a set of continuous dates. As soon as the price changes that is a different pricing event |