Skip to content

Commit

Permalink
Added ability to limit the total number of concurrent reservations fo…
Browse files Browse the repository at this point in the history
…r a schedule
  • Loading branch information
nkorbel committed May 29, 2020
1 parent 75748ef commit 3a8629d
Show file tree
Hide file tree
Showing 15 changed files with 2,575 additions and 2,384 deletions.
862 changes: 442 additions & 420 deletions Domain/Access/ScheduleRepository.php

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions Pages/Admin/ManageSchedulesPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,16 @@ function GetTargetScheduleId();
* @return string
*/
function GetValue();

/**
* @return int
*/
function GetMaximumConcurrentReservations();

/**
* @return bool
*/
function GetIsUnlimitedConcurrentReservations();
}

interface IManageSchedulesPage extends IUpdateSchedulePage, IActionPage, IPageable
Expand Down Expand Up @@ -619,4 +629,14 @@ public function GetDefaultStyle()
{
return $this->GetForm(FormKeys::SCHEDULE_DEFAULT_STYLE);
}

public function GetMaximumConcurrentReservations()
{
return intval($this->GetForm(FormKeys::MAXIMUM_CONCURRENT_RESERVATIONS));
}

public function GetIsUnlimitedConcurrentReservations()
{
return $this->GetCheckbox(FormKeys::MAXIMUM_CONCURRENT_UNLIMITED);
}
}
Loading

0 comments on commit 3a8629d

Please sign in to comment.