@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; |
| 6 | 6 | use Symfony\Component\Console\Input\InputArgument; |
| 7 | 7 | use Symfony\Component\Console\Input\InputInterface; |
| 8 | -use Symfony\Component\Console\Input\InputOption; |
|
| 9 | 8 | use Symfony\Component\Console\Output\OutputInterface; |
| 10 | 9 | use Symfony\Component\Console\Input\ArrayInput; |
| 11 | 10 | |
@@ -23,6 +23,9 @@ |
||
| 23 | 23 | $this->copiaManuale($input); |
| 24 | 24 | } |
| 25 | 25 | |
| 26 | + /** |
|
| 27 | + * @param InputInterface $input |
|
| 28 | + */ |
|
| 26 | 29 | protected function copiaManuale($input) |
| 27 | 30 | { |
| 28 | 31 | $filesystem = $this->getContainer()->get('filesystem'); |
@@ -199,6 +199,10 @@ discard block |
||
| 199 | 199 | ); |
| 200 | 200 | } |
| 201 | 201 | |
| 202 | + /** |
|
| 203 | + * @param string $nomebundle |
|
| 204 | + * @param string $controller |
|
| 205 | + */ |
|
| 202 | 206 | protected function elencoModifiche($nomebundle, $controller, $id) |
| 203 | 207 | { |
| 204 | 208 | $controllerStorico = 'Storicomodifiche'; |
@@ -412,6 +416,10 @@ discard block |
||
| 412 | 416 | ->getForm(); |
| 413 | 417 | } |
| 414 | 418 | |
| 419 | + /** |
|
| 420 | + * @param \Symfony\Component\DependencyInjection\ContainerInterface $container |
|
| 421 | + * @param \Doctrine\Common\Persistence\ObjectManager $em |
|
| 422 | + */ |
|
| 415 | 423 | protected function getParametersTestataPerGriglia($request, $container, $em, $paricevuti) |
| 416 | 424 | { |
| 417 | 425 | if ($request->get('parametritesta')) { |
@@ -426,6 +434,10 @@ discard block |
||
| 426 | 434 | return $request->get('parametritesta') ? $parametritesta : $paricevuti; |
| 427 | 435 | } |
| 428 | 436 | |
| 437 | + /** |
|
| 438 | + * @param \Symfony\Component\DependencyInjection\ContainerInterface $container |
|
| 439 | + * @param \Doctrine\Common\Persistence\ObjectManager $em |
|
| 440 | + */ |
|
| 429 | 441 | protected function getParametersDatiPerGriglia($request, $container, $em, $paricevuti) |
| 430 | 442 | { |
| 431 | 443 | if ($request->get('parametrigriglia')) { |
@@ -38,6 +38,9 @@ |
||
| 38 | 38 | return $response; |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | + /** |
|
| 42 | + * @param Request $request |
|
| 43 | + */ |
|
| 41 | 44 | public function prepareOutput($request) |
| 42 | 45 | { |
| 43 | 46 | $namespace = $this->getNamespace(); |
@@ -51,7 +51,6 @@ discard block |
||
| 51 | 51 | |
| 52 | 52 | /** |
| 53 | 53 | * @param array $parametri |
| 54 | - * @param string $parametri["tipo"] |
|
| 55 | 54 | * |
| 56 | 55 | * @return Array("segnouno"=>"xx", "segnodue"=>"yy") dove segnodue non obbligatorio |
| 57 | 56 | */ |
@@ -116,6 +115,12 @@ discard block |
||
| 116 | 115 | return $formattata; |
| 117 | 116 | } |
| 118 | 117 | |
| 118 | + /** |
|
| 119 | + * @param string $aaaa |
|
| 120 | + * @param string $mm |
|
| 121 | + * @param string $gg |
|
| 122 | + * @param boolean $senzalinea |
|
| 123 | + */ |
|
| 119 | 124 | private static function getDataFormattata($aaaa, $mm, $gg, $senzalinea) |
| 120 | 125 | { |
| 121 | 126 | $separatore = ($senzalinea ? '' : '-'); |
@@ -160,10 +165,6 @@ discard block |
||
| 160 | 165 | |
| 161 | 166 | /** |
| 162 | 167 | * @param array $parametri |
| 163 | - * @param string $parametri["nomecodice"] default = "codice" |
|
| 164 | - * @param string $parametri["nomedescrizione"] default = "descrizione" |
|
| 165 | - * @param array $parametri["elementi"] Array([0]=>("codice"=>1, "descrizione"=>"blaa"), [1]=>...) |
|
| 166 | - * @param string $parametri["selezionato"] opzionale |
|
| 167 | 168 | * |
| 168 | 169 | * @return string |
| 169 | 170 | */ |
@@ -23,23 +23,6 @@ discard block |
||
| 23 | 23 | * contenente i dati di testata per la griglia. |
| 24 | 24 | * |
| 25 | 25 | * @param array $paricevuti |
| 26 | - * @param object $paricevuti[request] oggetto che contiene il POST passato alla griglia |
|
| 27 | - * @param string $paricevuti[nometabella] |
|
| 28 | - * @param array $paricevuti[dettaglij] array contenente tutte le tabelle per le quali richiedere |
|
| 29 | - * la join a partire da $paricevuti[nometabella] |
|
| 30 | - * il vettore è composto da |
|
| 31 | - * array("nomecampodadecodificare"=>array( |
|
| 32 | - * "descrizione"=>"nometabella.campodecodifica", |
|
| 33 | - * "lunghezza"=>"40") |
|
| 34 | - * ) |
|
| 35 | - * @param array $paricevuti[colonne_link] array contenente eventuali colonne che debbano essere |
|
| 36 | - * rappresentate da un link. Non è da confondere con i |
|
| 37 | - * parametri_link di datiPerGriglia, perché QUESTO array |
|
| 38 | - * si può passare alla testata se si vuole avere una |
|
| 39 | - * colonna link che prenda in automatico |
|
| 40 | - * parametro id = al valore dell'id della tabella |
|
| 41 | - * principale su cui si sta facendo la griglia |
|
| 42 | - * @param string $paricevuti[output] : "index" se la testata serve per la griglia dell'index, "stampa" se la testata serve per la stampa |
|
| 43 | 26 | * |
| 44 | 27 | * @return array contentente i dati di testata per la griglia |
| 45 | 28 | */ |
@@ -84,22 +67,6 @@ discard block |
||
| 84 | 67 | * i dati di risposta sulla base dei parametri passati. |
| 85 | 68 | * |
| 86 | 69 | * @param array $parametri |
| 87 | - * @param object $paricevuti[request] oggetto che contiene il POST passato alla griglia |
|
| 88 | - * @param string $paricevuti[nometabella] |
|
| 89 | - * @param array $paricevuti[tabellej] array contenente tutte le tabelle per le quali richiedere |
|
| 90 | - * la join a partire da $paricevuti[nometabella] |
|
| 91 | - * @param array $paricevuti[escludere] array contenente tutti i campi che non devono essere restituiti |
|
| 92 | - * @param bool $paricevuti[nospan] se true non imposta limit e offset |
|
| 93 | - * @param array $paricevuti[parametri_link] array contenente le colonne che devono essere rappresentate |
|
| 94 | - * come dei link e relativi parametri per comporre l'href. |
|
| 95 | - * Da non confondere con colonne_link che si passa a |
|
| 96 | - * testataPerGriglia, perchè QUESTO array genera un |
|
| 97 | - * tag <href> interno alla colonna per il quale si |
|
| 98 | - * possono specificare le parti che lo compongono |
|
| 99 | - * @param array $paricevuti[decodifiche] = array contenente eventuali decodifiche dei valori di |
|
| 100 | - * una colonna che non può essere tradotta con una join |
|
| 101 | - * ad una tabella |
|
| 102 | - * @param string $paricevuti[output] : "index" se i dati servono per la griglia dell'index, "stampa" se i dati servono per la stampa |
|
| 103 | 70 | * |
| 104 | 71 | * @return JSON con i dati richiesti |
| 105 | 72 | */ |
@@ -169,6 +169,9 @@ |
||
| 169 | 169 | } |
| 170 | 170 | } |
| 171 | 171 | |
| 172 | + /** |
|
| 173 | + * @param boolean $proxy |
|
| 174 | + */ |
|
| 172 | 175 | protected function checkUrl($name, $proxy) |
| 173 | 176 | { |
| 174 | 177 | $ch = curl_init($name); |
@@ -8,6 +8,9 @@ discard block |
||
| 8 | 8 | class StampatabellaController extends FiCoreController |
| 9 | 9 | { |
| 10 | 10 | |
| 11 | + /** |
|
| 12 | + * @param \Symfony\Component\DependencyInjection\ContainerInterface $container |
|
| 13 | + */ |
|
| 11 | 14 | public function __construct($container = null) |
| 12 | 15 | { |
| 13 | 16 | if ($container) { |
@@ -181,6 +184,9 @@ discard block |
||
| 181 | 184 | return $filename; |
| 182 | 185 | } |
| 183 | 186 | |
| 187 | + /** |
|
| 188 | + * @param \PHPExcel_Worksheet $sheet |
|
| 189 | + */ |
|
| 184 | 190 | private function printHeaderXls($modellicolonne, $testata, $sheet) |
| 185 | 191 | { |
| 186 | 192 | $indicecolonnaheader = 0; |
@@ -237,6 +243,9 @@ discard block |
||
| 237 | 243 | return $valore; |
| 238 | 244 | } |
| 239 | 245 | |
| 246 | + /** |
|
| 247 | + * @param \PHPExcel_Worksheet $sheet |
|
| 248 | + */ |
|
| 240 | 249 | private function printBodyXls($righe, $modellicolonne, $sheet) |
| 241 | 250 | { |
| 242 | 251 | $row = 2; |
@@ -306,6 +315,13 @@ discard block |
||
| 306 | 315 | } |
| 307 | 316 | } |
| 308 | 317 | |
| 318 | + /** |
|
| 319 | + * @param integer $larghezzaform |
|
| 320 | + * @param integer $h |
|
| 321 | + * @param integer $border |
|
| 322 | + * @param string $align |
|
| 323 | + * @param integer $ln |
|
| 324 | + */ |
|
| 309 | 325 | private function stampaTestata($pdf, $nomicolonne, $modellicolonne, $larghezzaform, $h, $border, $align, $fill, $ln) |
| 310 | 326 | { |
| 311 | 327 | // Testata |
@@ -74,6 +74,10 @@ discard block |
||
| 74 | 74 | return new Response('OK'); |
| 75 | 75 | } |
| 76 | 76 | |
| 77 | + /** |
|
| 78 | + * @param Request $request |
|
| 79 | + * @param string $attribute |
|
| 80 | + */ |
|
| 77 | 81 | private function getRequestValue($request, $attribute) |
| 78 | 82 | { |
| 79 | 83 | if (($request->get($attribute) !== null) && ($request->get($attribute) !== '')) { |
@@ -212,6 +216,9 @@ discard block |
||
| 212 | 216 | $this->scriviDB($colonne, $nometabella, $nomebundle, $parametri); |
| 213 | 217 | } |
| 214 | 218 | |
| 219 | + /** |
|
| 220 | + * @param string $nomebundle |
|
| 221 | + */ |
|
| 215 | 222 | private function scriviDB($colonne, $nometabella, $nomebundle, $parametri) |
| 216 | 223 | { |
| 217 | 224 | foreach ($colonne as $colonna) { |
@@ -374,6 +381,10 @@ discard block |
||
| 374 | 381 | return new JsonResponse($risposta); |
| 375 | 382 | } |
| 376 | 383 | |
| 384 | + /** |
|
| 385 | + * @param string $nomebundle |
|
| 386 | + * @param string $controller |
|
| 387 | + */ |
|
| 377 | 388 | private function listacampitabelladettagli($escludiid, $colonne, $nomebundle, $controller) |
| 378 | 389 | { |
| 379 | 390 | $risposta = array(); |