Conditions | 2 |
Paths | 2 |
Total Lines | 18 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | public function postDeleteAction($examID, $questionID) |
||
20 | { |
||
21 | $delModel = new QuestionDeleteModel($this->get('dbh')); |
||
22 | |||
23 | if ($delModel->delete($questionID)) { |
||
24 | $this->redirectWithMessage( |
||
25 | '/admin/test/edit/'.$examID, |
||
26 | 'success', |
||
27 | 'Usunięto pomyślnie!' |
||
28 | ); |
||
29 | } else { |
||
30 | $this->redirectWithMessage( |
||
31 | '/admin/test/edit/'.$examID.'/question/del/'.$questionID, |
||
32 | 'warning', |
||
33 | 'Coś się zepsuło!' |
||
34 | ); |
||
35 | } |
||
36 | } |
||
37 | } |
||
38 |