Total Complexity | 4 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | abstract class Controller |
||
14 | { |
||
15 | /** @var Application */ |
||
16 | public $app; |
||
17 | |||
18 | /** @var string */ |
||
19 | public $layout = 'layout'; |
||
20 | |||
21 | /** @var string */ |
||
22 | public $title; |
||
23 | |||
24 | /** |
||
25 | * Action Index |
||
26 | */ |
||
27 | public function index() |
||
28 | { |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * Volta para o método index da pagina atual |
||
33 | * @codeCoverageIgnore |
||
34 | */ |
||
35 | protected function backToIndex() |
||
36 | { |
||
37 | Url::instance()->redirect($this->app->getPage()); |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * Redireciona para a URL |
||
42 | * @param string $url |
||
43 | * @codeCoverageIgnore |
||
44 | */ |
||
45 | protected function redirect($url) |
||
48 | } |
||
49 | |||
50 | /** |
||
51 | * Atualiza a mesma página |
||
52 | * @param string $url |
||
53 | * @codeCoverageIgnore |
||
54 | */ |
||
55 | protected function refresh() |
||
60 |