1 | <?php |
||
24 | class ClearCache implements ClearCacheActionsHookInterface |
||
25 | { |
||
26 | /** |
||
27 | * Modifies CacheMenuItems array. |
||
28 | * |
||
29 | * @param array $cacheActions |
||
30 | * @param array $optionValues |
||
31 | */ |
||
32 | public function manipulateCacheActions(&$cacheActions, &$optionValues) |
||
48 | |||
49 | /** |
||
50 | * clear Cache ajax handler. |
||
51 | * |
||
52 | * @param array $ajaxParams |
||
53 | * @param $ajaxObj |
||
54 | */ |
||
55 | public function clear($ajaxParams, $ajaxObj) |
||
73 | |||
74 | /** |
||
75 | * Get Ajax URI. |
||
76 | * |
||
77 | * @return string |
||
78 | */ |
||
79 | protected function getAjaxUri(): string |
||
92 | |||
93 | /** |
||
94 | * Return if the clear cache element is als visible in production. |
||
95 | * |
||
96 | * @return bool |
||
97 | */ |
||
98 | protected function isAlwaysActivated(): bool |
||
104 | |||
105 | /** |
||
106 | * Return TRUE if the current instance is in production mode. |
||
107 | * |
||
108 | * @return bool |
||
109 | */ |
||
110 | protected function isProduction(): bool |
||
115 | |||
116 | /** |
||
117 | * Check if the user is a admin. |
||
118 | * |
||
119 | * @return bool |
||
120 | */ |
||
121 | protected function isAdmin(): bool |
||
126 | |||
127 | /** |
||
128 | * Return the Backend user authentication. |
||
129 | * |
||
130 | * @return BackendUserAuthentication |
||
131 | */ |
||
132 | protected function getBackendUserAuthentication() |
||
136 | } |
||
137 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.