/**
  * Runs the search by allocation grouped by resource.
  * Saves the result in the current object.
  */
 function doSearch()
 {
     $bookingResources = AllocationDBO::getAllocationsByResourceForDateRange($this->showMinDate, $this->showMaxDate, $this->resourceId, null, null);
     if (sizeof($bookingResources) != 1) {
         error_log("Unexpected number of items in AllocationViewResource::doSearch() ");
         foreach ($bookingResources as $br) {
             error_log("Found BookingResource {$br->resourceId}");
         }
     }
     if (sizeof($bookingResources) >= 0) {
         $this->bookingResource = array_shift($bookingResources);
     } else {
         $this->bookingResource = null;
     }
 }
 /**
  * Runs the search by allocation grouped by resource.
  * Saves the result in the current object.
  */
 function doSearch()
 {
     $this->bookingResources = AllocationDBO::getAllocationsByResourceForDateRange($this->showMinDate, $this->showMaxDate, null, null, null);
 }