You are here

public function PdfTemplate::setHeaderFooter in Views PDF 7.2

Same name and namespace in other branches
  1. 6 views_pdf_template.php \PdfTemplate::setHeaderFooter()
  2. 7.3 views_pdf_template.php \PdfTemplate::setHeaderFooter()
  3. 7 views_pdf_template.php \PdfTemplate::setHeaderFooter()

Sets the current header and footer of the page.

File

./views_pdf_template.php, line 896
PDF Class to generate PDFs with native PHP. This class based on FPDF and FPDI.

Class

PdfTemplate
The main class to generate the PDF.

Code

public function setHeaderFooter($record, $options, $view) {

  //if ($this->getPage() > 0 && !isset($this->headerFooterData[$this->getPage()])) {
  $this->headerFooterData[$this
    ->getPage()] = $record;

  //}
  $this->headerFooterOptions = $options;
  $this->view =& $view;
}