public function PdfTemplate::setHeaderFooter in Views PDF 6
Same name and namespace in other branches
- 7.3 views_pdf_template.php \PdfTemplate::setHeaderFooter()
- 7 views_pdf_template.php \PdfTemplate::setHeaderFooter()
- 7.2 views_pdf_template.php \PdfTemplate::setHeaderFooter()
Sets the current header and footer of the page.
File
- ./
views_pdf_template.php, line 772 - 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;
}