diff options
author | mattpiwik <matthieu.aubry@gmail.com> | 2011-05-12 03:06:20 +0400 |
---|---|---|
committer | mattpiwik <matthieu.aubry@gmail.com> | 2011-05-12 03:06:20 +0400 |
commit | 7eeb25ab3528fffc69b47e1fc659d2aea12fcb22 (patch) | |
tree | f56422d27ee7f8662df02af8a222ecd6dfe29d04 /core/TCPDF.php | |
parent | 2819a7e48c4c2b08098445650d6ab2b6cc4da065 (diff) |
Refs #2401 Fixing build adding SVN keywords
git-svn-id: http://dev.piwik.org/svn/trunk@4677 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/TCPDF.php')
-rw-r--r-- | core/TCPDF.php | 96 |
1 files changed, 48 insertions, 48 deletions
diff --git a/core/TCPDF.php b/core/TCPDF.php index 948d2ce7bb..2c45414f18 100644 --- a/core/TCPDF.php +++ b/core/TCPDF.php @@ -1,49 +1,49 @@ -<?php
-
-/**
- * Piwik - Open source web analytics
- *
- * @link http://piwik.org
- * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
- *
- * @category Library
- */
-
-require_once PIWIK_INCLUDE_PATH . '/libs/tcpdf/tcpdf.php';
-
-class Piwik_TCPDF extends TCPDF
-{
- protected $footerContent = null;
- protected $currentPageNo = null;
-
- function Footer()
- {
- //Don't show footer on the frontPage
- if ($this->currentPageNo > 1) {
- $this->SetY(-15);
- $this->SetFont($this->footer_font[0], $this->footer_font[1], $this->footer_font[2]);
- $this->Cell(0, 10, $this->footerContent . Piwik_Translate('PDFReports_Pagination', array($this->getAliasNumPage(), $this->getAliasNbPages())), 0, false, 'C', 0, '', 0, false, 'T', 'M');
- }
- }
-
- function setCurrentPageNo()
- {
- if (empty($this->currentPageNo)) {
- $this->currentPageNo = 1;
- } else {
- $this->currentPageNo++;
- }
- }
-
- function AddPage($orientation = '')
- {
- parent::AddPage($orientation);
- $this->setCurrentPageNo();
- }
-
- function SetFooterContent($footerContent)
- {
- $this->footerContent = $footerContent;
- }
-
+<?php + +/** + * Piwik - Open source web analytics + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later + * + * @category Library + */ + +require_once PIWIK_INCLUDE_PATH . '/libs/tcpdf/tcpdf.php'; + +class Piwik_TCPDF extends TCPDF +{ + protected $footerContent = null; + protected $currentPageNo = null; + + function Footer() + { + //Don't show footer on the frontPage + if ($this->currentPageNo > 1) { + $this->SetY(-15); + $this->SetFont($this->footer_font[0], $this->footer_font[1], $this->footer_font[2]); + $this->Cell(0, 10, $this->footerContent . Piwik_Translate('PDFReports_Pagination', array($this->getAliasNumPage(), $this->getAliasNbPages())), 0, false, 'C', 0, '', 0, false, 'T', 'M'); + } + } + + function setCurrentPageNo() + { + if (empty($this->currentPageNo)) { + $this->currentPageNo = 1; + } else { + $this->currentPageNo++; + } + } + + function AddPage($orientation = '') + { + parent::AddPage($orientation); + $this->setCurrentPageNo(); + } + + function SetFooterContent($footerContent) + { + $this->footerContent = $footerContent; + } + }
\ No newline at end of file |