public function GetBlackoutsWithin(DateRange $dateRange, $scheduleId = ReservationViewRepository::ALL_SCHEDULES) { $getBlackoutsCommand = new GetBlackoutListCommand($dateRange->GetBegin(), $dateRange->GetEnd(), $scheduleId); $result = ServiceLocator::GetDatabase()->Query($getBlackoutsCommand); $blackouts = array(); while ($row = $result->GetRow()) { $blackouts[] = BlackoutItemView::Populate($row); } $result->Free(); return $blackouts; }
public function __construct($instanceId, Date $startDate, Date $endDate, $resourceId, $seriesId = 1) { parent::__construct($instanceId, $startDate, $endDate, $resourceId, null, null, null, null, null, null, null, $seriesId, null, null); }