diff options
author | JulienMoumne <julien@piwik.org> | 2012-08-21 03:21:02 +0400 |
---|---|---|
committer | JulienMoumne <julien@piwik.org> | 2012-08-21 03:21:02 +0400 |
commit | c8e94839a6a281591c703d265aa410a92e268c71 (patch) | |
tree | 2f437768752fe48c1851a155a92b43f525e818de /core/ReportRenderer/Pdf.php | |
parent | 762bd55c958639d857b7deebbabdf8e2fec79103 (diff) |
refs #3323 #3088 #2708 #71 #2318
* generate and compare HTML, PDF & SMS reports in Test_Piwik_Integration_EcommerceOrderWithItems & Test_Piwik_Integration_TwoVisitors_TwoWebsites_DifferentDays
* report content as return value of PDFReports->generateReport() with new output type OUTPUT_RETURN
git-svn-id: http://dev.piwik.org/svn/trunk@6849 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/ReportRenderer/Pdf.php')
-rw-r--r-- | core/ReportRenderer/Pdf.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/ReportRenderer/Pdf.php b/core/ReportRenderer/Pdf.php index c0279a17d0..51ef108e06 100644 --- a/core/ReportRenderer/Pdf.php +++ b/core/ReportRenderer/Pdf.php @@ -139,6 +139,11 @@ class Piwik_ReportRenderer_Pdf extends Piwik_ReportRenderer $this->TCPDF->Output($filename, 'I'); } + public function getRenderedReport() + { + return $this->TCPDF->Output(null, 'S'); + } + public function renderFrontPage($websiteName, $prettyDate, $description, $reportMetadata) { $websiteTitle = $this->formatText(Piwik_Translate('General_Website') . " " . $websiteName); |