| @@ 16-35 (lines=20) @@ | ||
| 13 | * |
|
| 14 | * @package Broarm\EventTickets |
|
| 15 | */ |
|
| 16 | class ReservationController extends CheckoutStepController |
|
| 17 | { |
|
| 18 | private static $allowed_actions = array( |
|
| 19 | 'ReservationForm' |
|
| 20 | ); |
|
| 21 | ||
| 22 | protected $step = 'register'; |
|
| 23 | ||
| 24 | /** |
|
| 25 | * Get the reservation form |
|
| 26 | * |
|
| 27 | * @return ReservationForm |
|
| 28 | */ |
|
| 29 | public function ReservationForm() |
|
| 30 | { |
|
| 31 | $reservationForm = new ReservationForm($this, 'ReservationForm', ReservationSession::get()); |
|
| 32 | $reservationForm->setNextStep(CheckoutSteps::nextStep($this->step)); |
|
| 33 | return $reservationForm; |
|
| 34 | } |
|
| 35 | } |
|
| 36 | ||
| @@ 16-35 (lines=20) @@ | ||
| 13 | * |
|
| 14 | * @package Broarm\EventTickets |
|
| 15 | */ |
|
| 16 | class SummaryController extends CheckoutStepController |
|
| 17 | { |
|
| 18 | protected $step = 'summary'; |
|
| 19 | ||
| 20 | private static $allowed_actions = array( |
|
| 21 | 'SummaryForm' |
|
| 22 | ); |
|
| 23 | ||
| 24 | /** |
|
| 25 | * Get the summary form |
|
| 26 | * |
|
| 27 | * @return SummaryForm |
|
| 28 | */ |
|
| 29 | public function SummaryForm() |
|
| 30 | { |
|
| 31 | $summary = new SummaryForm($this, 'SummaryForm', ReservationSession::get()); |
|
| 32 | $summary->setNextStep(CheckoutSteps::nextStep($this->step)); |
|
| 33 | return $summary; |
|
| 34 | } |
|
| 35 | } |
|
| 36 | ||