| @@ 197-212 (lines=16) @@ | ||
| 194 | * @param void |
|
| 195 | * @return file PDF file |
|
| 196 | */ |
|
| 197 | public function renderMealTicket() |
|
| 198 | { |
|
| 199 | $this->allowAdminAccessOnly(); |
|
| 200 | // output file name |
|
| 201 | $this->filename= 'vlastni_stravenky.pdf'; |
|
| 202 | $templateName = 'meal_ticket'; |
|
| 203 | ||
| 204 | $mealTickets = $this->getModel()->mealTicket(); |
|
| 205 | ||
| 206 | $parameters = [ |
|
| 207 | 'result' => $mealTickets, |
|
| 208 | ]; |
|
| 209 | ||
| 210 | $this->forgeView($templateName, $parameters); |
|
| 211 | $this->publish(); |
|
| 212 | } |
|
| 213 | ||
| 214 | /** |
|
| 215 | * Print name list into PDF file |
|
| @@ 401-417 (lines=17) @@ | ||
| 398 | * @param void |
|
| 399 | * @return file PDF file |
|
| 400 | */ |
|
| 401 | protected function renderProgramDetails() |
|
| 402 | { |
|
| 403 | $this->allowAdminAccessOnly(); |
|
| 404 | $this->filename = 'vypis-programu.pdf'; |
|
| 405 | $templateName = 'program_details'; |
|
| 406 | ||
| 407 | $programDetails = $this->getModel()->programDetails(); |
|
| 408 | ||
| 409 | $this->getPdf()->SetHeader('Výpis programů|sraz VS'); |
|
| 410 | ||
| 411 | $parameters = [ |
|
| 412 | 'result' => $programDetails, |
|
| 413 | ]; |
|
| 414 | ||
| 415 | $this->forgeView($templateName, $parameters); |
|
| 416 | $this->publish(); |
|
| 417 | } |
|
| 418 | ||
| 419 | /** |
|
| 420 | * @return void |
|