You are here

public function MerciDefaultController_non_inventory::reservations in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.3

File

merci_core/reservation.handler.inc, line 464
Abstraction of the selection logic of an entity reference field.

Class

MerciDefaultController_non_inventory
A null implementation of EntityReference_SelectionHandler.

Code

public function reservations($dates, $exclude_id) {
  $bestfit = $this
    ->bestFit($dates);
  $reservations = array();
  foreach ($bestfit as $enity_id => $reservation) {
    $reservations[] = $entity_id;
  }
  return $reservations;
}