You are here

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

Given a date range returns all states in that range - useful when we are not interested in starting and ending dates but simply in states.

Parameters

DateTime $start_date: The start day of the range.

DateTime $end_date: The end date of our range.

bool $confirmed: Whether include confirmed states or not.

Return value

array An array of states within that range

1 method overrides UnitCalendarInterface::getStates()
UnitCalendar::getStates in modules/rooms_availability/includes/rooms_availability.unit_calendar.inc
Given a date range returns all states in that range - useful when we are not interested in starting and ending dates but simply in states.

File

modules/rooms_availability/includes/rooms_availability.unit_calendar_interface.inc, line 24
Handles querying and updating the availability information relative to a single bookable unit.

Class

UnitCalendarInterface
@file Handles querying and updating the availability information relative to a single bookable unit.

Code

public function getStates(DateTime $start_date, DateTime $end_date, $confirmed = FALSE);