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