1 | <?php |
||
14 | abstract class AbstractViewController extends \flipbox\patron\cp\controllers\view\AbstractViewController |
||
15 | { |
||
16 | /** |
||
17 | * The index view template path |
||
18 | */ |
||
19 | const TEMPLATE_BASE = 'patron/_cp/provider'; |
||
20 | |||
21 | /******************************************* |
||
22 | * ENVIRONMENTS |
||
23 | *******************************************/ |
||
24 | |||
25 | /** |
||
26 | * @param Provider $provider |
||
27 | * @return array |
||
28 | */ |
||
29 | protected function availableEnvironments(Provider $provider): array |
||
36 | |||
37 | /******************************************* |
||
38 | * TABS |
||
39 | *******************************************/ |
||
40 | |||
41 | /** |
||
42 | * @param Provider $provider |
||
43 | * @return array |
||
44 | */ |
||
45 | protected function getTabs(Provider $provider): array |
||
66 | |||
67 | /******************************************* |
||
68 | * PATHS |
||
69 | *******************************************/ |
||
70 | |||
71 | /** |
||
72 | * @inheritdoc |
||
73 | */ |
||
74 | protected function getBaseCpProviderPath(): string |
||
78 | |||
79 | /** |
||
80 | * @inheritdoc |
||
81 | */ |
||
82 | protected function getBaseCpProvidersPath(): string |
||
86 | |||
87 | /** |
||
88 | * @return string |
||
89 | */ |
||
90 | protected function getBaseActionPath(): string |
||
94 | |||
95 | /** |
||
96 | * @return string |
||
97 | */ |
||
98 | protected function getBaseCpPath(): string |
||
102 | |||
103 | /******************************************* |
||
104 | * VARIABLES |
||
105 | *******************************************/ |
||
106 | |||
107 | /** |
||
108 | * Set base variables used to generate template views |
||
109 | * |
||
110 | * @param array $variables |
||
111 | */ |
||
112 | protected function baseVariables(array &$variables = []) |
||
125 | |||
126 | /** |
||
127 | * @param array $variables |
||
128 | */ |
||
129 | protected function insertVariables(array &$variables) |
||
146 | |||
147 | /******************************************* |
||
148 | * UPDATE VARIABLES |
||
149 | *******************************************/ |
||
150 | |||
151 | /** |
||
152 | * @param array $variables |
||
153 | * @param Provider $provider |
||
154 | * @throws \ReflectionException |
||
155 | */ |
||
156 | protected function updateVariables(array &$variables, Provider $provider) |
||
177 | } |
||
178 |
This check looks for a call to a parent method whose name is different than the method from which it is called.
Consider the following code:
The
getFirstName()
method in theSon
calls the wrong method in the parent class.