public function MerciDefaultController_non_inventory::fillBuckets in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.3
1 call to MerciDefaultController_non_inventory::fillBuckets()
File
- merci_core/
reservation.handler.inc, line 447 - Abstraction of the selection logic of an entity reference field.
Class
- MerciDefaultController_non_inventory
- A null implementation of EntityReference_SelectionHandler.
Code
public function fillBuckets() {
$conflicts = array();
foreach ($this->dates as $dates) {
$date_value = $dates['value'];
$result = $this
->bestFit($dates);
// Result is array indexed by $delta of filled buckets.
foreach ($result as $delta => $buckets) {
if (!isset($conflicts[$delta])) {
$conflicts[$delta] = array();
}
$conflicts[$delta][$date_value] = $buckets;
}
}
return $conflicts;
}