@@ -362,10 +362,18 @@ |
||
| 362 | 362 | private ?\Closure $headerFcn = null; |
| 363 | 363 | private ?\Closure $footerFcn = null; |
| 364 | 364 | |
| 365 | - public function Footer() { return ( $fcn = $this->footerFcn ) ? $fcn( $this ) : null; } |
|
| 366 | - public function Header() { return ( $fcn = $this->headerFcn ) ? $fcn( $this ) : null; } |
|
| 367 | - public function setFooterFunction( \Closure $fcn ) { $this->footerFcn = $fcn; } |
|
| 368 | - public function setHeaderFunction( \Closure $fcn ) { $this->headerFcn = $fcn; } |
|
| 365 | + public function Footer() |
|
| 366 | + { |
|
| 367 | +return ( $fcn = $this->footerFcn ) ? $fcn( $this ) : null; } |
|
| 368 | + public function Header() |
|
| 369 | + { |
|
| 370 | +return ( $fcn = $this->headerFcn ) ? $fcn( $this ) : null; } |
|
| 371 | + public function setFooterFunction( \Closure $fcn ) |
|
| 372 | + { |
|
| 373 | +$this->footerFcn = $fcn; } |
|
| 374 | + public function setHeaderFunction( \Closure $fcn ) |
|
| 375 | + { |
|
| 376 | +$this->headerFcn = $fcn; } |
|
| 369 | 377 | }; |
| 370 | 378 | $pdf->setCreator( PDF_CREATOR ); |
| 371 | 379 | $pdf->setAuthor( 'Aimeos' ); |
@@ -397,10 +397,18 @@ |
||
| 397 | 397 | private ?\Closure $headerFcn = null; |
| 398 | 398 | private ?\Closure $footerFcn = null; |
| 399 | 399 | |
| 400 | - public function Footer() { return ( $fcn = $this->footerFcn ) ? $fcn( $this ) : null; } |
|
| 401 | - public function Header() { return ( $fcn = $this->headerFcn ) ? $fcn( $this ) : null; } |
|
| 402 | - public function setFooterFunction( \Closure $fcn ) { $this->footerFcn = $fcn; } |
|
| 403 | - public function setHeaderFunction( \Closure $fcn ) { $this->headerFcn = $fcn; } |
|
| 400 | + public function Footer() |
|
| 401 | + { |
|
| 402 | +return ( $fcn = $this->footerFcn ) ? $fcn( $this ) : null; } |
|
| 403 | + public function Header() |
|
| 404 | + { |
|
| 405 | +return ( $fcn = $this->headerFcn ) ? $fcn( $this ) : null; } |
|
| 406 | + public function setFooterFunction( \Closure $fcn ) |
|
| 407 | + { |
|
| 408 | +$this->footerFcn = $fcn; } |
|
| 409 | + public function setHeaderFunction( \Closure $fcn ) |
|
| 410 | + { |
|
| 411 | +$this->headerFcn = $fcn; } |
|
| 404 | 412 | }; |
| 405 | 413 | $pdf->setCreator( PDF_CREATOR ); |
| 406 | 414 | $pdf->setAuthor( 'Aimeos' ); |