Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulienMoumne <julien@piwik.org>2012-06-14 20:19:42 +0400
committerJulienMoumne <julien@piwik.org>2012-06-14 20:19:42 +0400
commitf39a8e103f01ade174f601c3c5a68c4a874d3e6d (patch)
tree80757bdf57ceace5efb3c65571502f88aba18778 /core/ReportRenderer/Html.php
parent17ec4cc66f81dd57724f1a58a2dcdaddba91af61 (diff)
fixes #2708
refs #71 * PDFReports major refactoring. Any plugin can now add new kinds of reports. Required for #2708 and #3118. * test report functionality ($idReport == 0) dropped in Piwik_PDFReports_API->generateReport() * All Websites report shows 3 more metrics: Goal Conversions, eCommerce Conversions and eCommerce Revenue. Can be removed if asked to. * Piwik_PDFReports_API->sendEmailReport renamed to sendReport * All Piwik_PDFReports_API method signatures updated to support generic report parameters refs #389 * new API method to retrieve only one Piwik site : Piwik_MultiSites_API->getOne() * per #2708 description, Piwik_MultiSites_API methods now support a new parameter named enhanced. When activated, Goal Conversions, eCommerce Conversions and eCommerce Revenue along with their evolution will be included in the API output. * API metrics refactored in (@ignored)Piwik_MultiSites_API->getApiMetrics() * Metadata now returns 12 metrics : nb_visits, visits_evolution, nb_actions, actions_evolution, revenu, revenue_evolution, nb_conversions, nb_conversions_evolution, orders, orders_evolution, ecommerce_revenue, ecommerce_revenue_evolution refs #3118 * ReportPublisher plugin could now easily be implemented commits merged * r6243 * r6422 (#3012) TODO * the MobileMessaging settings page may need some embellishment * @review annotations need some attention * test if the MultiSites API evolutions have some impact on Piwik Mobile and other client code git-svn-id: http://dev.piwik.org/svn/trunk@6478 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/ReportRenderer/Html.php')
-rw-r--r--core/ReportRenderer/Html.php23
1 files changed, 2 insertions, 21 deletions
diff --git a/core/ReportRenderer/Html.php b/core/ReportRenderer/Html.php
index 925ee3b799..dc5c8320a8 100644
--- a/core/ReportRenderer/Html.php
+++ b/core/ReportRenderer/Html.php
@@ -36,33 +36,14 @@ class Piwik_ReportRenderer_Html extends Piwik_ReportRenderer
{
$this->epilogue();
- $filename = Piwik_ReportRenderer::appendExtension($filename, "html");
- $outputFilename = Piwik_ReportRenderer::getOutputPath($filename);
-
- $emailReport = @fopen($outputFilename, "w");
-
- if (!$emailReport) {
- throw new Exception ("The file : " . $outputFilename . " can not be opened in write mode.");
- }
-
- fwrite($emailReport, $this->rendering);
- fclose($emailReport);
-
- return $outputFilename;
+ return Piwik_ReportRenderer::writeFile($filename, 'html', $this->rendering);
}
public function sendToBrowserDownload($filename)
{
$this->epilogue();
- $filename = Piwik_ReportRenderer::appendExtension($filename, "html");
-
- Piwik::overrideCacheControlHeaders();
- header('Content-Description: File Transfer');
- header('Content-Type: text/html');
- header('Content-Disposition: attachment; filename="'.str_replace('"', '\'', basename($filename)).'";');
- header('Content-Length: '.strlen($this->rendering));
- echo $this->rendering;
+ Piwik_ReportRenderer::sendToBrowser($filename, 'html', 'text/html', $this->rendering);
}
private function epilogue()