You are here

public property AvailabilityAgent::$revert_valid_states in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7

Standard availability search returns a unit as available only if in one of the valid availability states. This switch reverts the behaviour to return a unit as availability if a state not defined in valid_states within the date range provided. This is particularly useful if looking for unknown state values within a given date range (e.g. search for any bookings within a date range).

Type: boolean

File

modules/rooms_booking/includes/rooms_booking.availability_agent.inc, line 86
Contains the AvailabilityAgent.

Class

AvailabilityAgent
An AvailabilityAgent provides access to the availability functionality of Rooms and lets you query for availability, get pricing information and create products that can be bought.

Code

public $revert_valid_states = FALSE;