You are here

function PdfTemplate::Header in Views PDF 7.3

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

Function override to output the header.

File

./views_pdf_template.php, line 166
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

function Header() {
  $this
    ->_format_header_footer('header');

  // Output the table header if required.
  if (!empty($this->tableHeader)) {
    $this->cell_padding = $this->cellPaddings;
    foreach ($this->tableHeader as $header) {
      list($x, $y, $label, $headerOptions, $view, $id) = $header;
      $this
        ->renderItem($x, $y, $label, NULL, $headerOptions, $view, $id, FALSE, TRUE);
    }
  }
}