Total Complexity | 3 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class MultiStepFormRequestHandler extends FormRequestHandler |
||
8 | { |
||
9 | |||
10 | /** |
||
11 | * Form model being handled |
||
12 | * |
||
13 | * @var MultiStepForm |
||
14 | */ |
||
15 | protected $form = null; |
||
16 | |||
17 | /** |
||
18 | * @config |
||
19 | * @var array |
||
20 | */ |
||
21 | private static $allowed_actions = [ |
||
|
|||
22 | 'handleField', |
||
23 | 'httpSubmission', |
||
24 | 'forTemplate', |
||
25 | 'gotoStep', |
||
26 | ]; |
||
27 | |||
28 | public function checkAccessAction($action) |
||
29 | { |
||
30 | if ($action === 'gotoStep') { |
||
31 | return true; |
||
32 | } |
||
33 | return parent::checkAccessAction($action); |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * @param HTTPRequest $request |
||
38 | * @return HTTPResponse |
||
39 | * @throws HTTPResponse_Exception |
||
40 | */ |
||
41 | public function gotoStep($request) |
||
44 | } |
||
45 | } |
||
46 |