1 | <?php |
||
9 | class FiController extends FiCrudController |
||
10 | { |
||
11 | 4 | protected function setParametriGriglia($prepar = array()) |
|
12 | { |
||
13 | 4 | $this->setup($prepar['request']); |
|
14 | 4 | $namespace = $this->getNamespace(); |
|
15 | 4 | $bundle = $this->getBundle(); |
|
16 | 4 | $controller = $this->getController(); |
|
17 | |||
18 | 4 | $gestionepermessi = $this->get("ficorebundle.gestionepermessi"); |
|
19 | 4 | $canRead = ($gestionepermessi->leggere(array('modulo' => $controller)) ? 1 : 0); |
|
20 | 4 | if (!$canRead) { |
|
21 | throw new AccessDeniedException("Non si hanno i permessi per visualizzare questo contenuto"); |
||
22 | } |
||
23 | |||
24 | 4 | $nomebundle = $namespace . $bundle . 'Bundle'; |
|
25 | 4 | $escludi = array(); |
|
26 | |||
27 | 4 | $paricevuti = array('container' => $this->container, 'nomebundle' => $nomebundle, 'nometabella' => $controller, 'escludere' => $escludi); |
|
28 | |||
29 | 4 | if (! empty($prepar)) { |
|
30 | 4 | $paricevuti = array_merge($paricevuti, $prepar); |
|
31 | 4 | } |
|
32 | |||
33 | 4 | self::$parametrigriglia = $paricevuti; |
|
34 | 4 | } |
|
35 | |||
36 | 1 | public function grigliaAction(Request $request) |
|
43 | |||
44 | protected function elencoModifiche($nomebundle, $controller, $id) |
||
57 | |||
58 | protected function getParametersTestataPerGriglia($request, $container, $em, $paricevuti) |
||
73 | |||
74 | protected function getParametersDatiPerGriglia($request, $container, $em, $paricevuti) |
||
88 | } |
||
89 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.