@@ -122,6 +122,10 @@ |
||
122 | 122 | |
123 | 123 | } |
124 | 124 | |
125 | + /** |
|
126 | + * @param boolean $response |
|
127 | + * @param string $templatePath |
|
128 | + */ |
|
125 | 129 | private function processPdf($response, $templatePath, $fieldData, $investment, $hash) |
126 | 130 | { |
127 | 131 | $pdf = new \FPDM($templatePath); |
@@ -9,8 +9,6 @@ |
||
9 | 9 | |
10 | 10 | require(APP_DIR . '/fpdm/fpdm.php'); |
11 | 11 | |
12 | -use Nette\Templating\FileTemplate; |
|
13 | - |
|
14 | 12 | /** |
15 | 13 | * |
16 | 14 | */ |
@@ -37,6 +37,9 @@ discard block |
||
37 | 37 | parent::beforeRender(); |
38 | 38 | } |
39 | 39 | |
40 | + /** |
|
41 | + * @param string $name |
|
42 | + */ |
|
40 | 43 | public function createComponentForm($name) |
41 | 44 | { |
42 | 45 | $form = $this->createForm('form-submit', 'default', null); |
@@ -406,6 +409,9 @@ discard block |
||
406 | 409 | $this->sendPayload(); |
407 | 410 | } |
408 | 411 | |
412 | + /** |
|
413 | + * @param string $type |
|
414 | + */ |
|
409 | 415 | public function sendPdf($investment, $type) |
410 | 416 | { |
411 | 417 | $emailSender = new EmailSender($this->settings, $investment, $type); |
@@ -10,7 +10,6 @@ |
||
10 | 10 | use Nette\Forms\Form; |
11 | 11 | use WebCMS\InvestformModule\Entity\Investment; |
12 | 12 | use WebCMS\InvestformModule\Entity\Address; |
13 | -use WebCMS\InvestformModule\Common\PdfPrinter; |
|
14 | 13 | use WebCMS\InvestformModule\Common\EmailSender; |
15 | 14 | use WebCMS\InvestformModule\Entity\Businessman; |
16 | 15 | use Nette\Mail\Message; |