add piwik installation
This commit is contained in:
parent
90aa4ef157
commit
8c5d4f0c31
3197 changed files with 563902 additions and 0 deletions
|
|
@ -0,0 +1,71 @@
|
|||
<?php
|
||||
/**
|
||||
* Piwik - Open source web analytics
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
*
|
||||
*/
|
||||
namespace Piwik\Plugins\MobileMessaging\ReportRenderer;
|
||||
|
||||
use Piwik\ReportRenderer;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
class ReportRendererException extends ReportRenderer
|
||||
{
|
||||
private $rendering = "";
|
||||
|
||||
function __construct($exception)
|
||||
{
|
||||
$this->rendering = $exception;
|
||||
}
|
||||
|
||||
public function setLocale($locale)
|
||||
{
|
||||
// nothing to do
|
||||
}
|
||||
|
||||
public function sendToDisk($filename)
|
||||
{
|
||||
return ReportRenderer::writeFile(
|
||||
$filename,
|
||||
Sms::SMS_FILE_EXTENSION,
|
||||
$this->rendering
|
||||
);
|
||||
}
|
||||
|
||||
public function sendToBrowserDownload($filename)
|
||||
{
|
||||
ReportRenderer::sendToBrowser(
|
||||
$filename,
|
||||
Sms::SMS_FILE_EXTENSION,
|
||||
Sms::SMS_CONTENT_TYPE,
|
||||
$this->rendering
|
||||
);
|
||||
}
|
||||
|
||||
public function sendToBrowserInline($filename)
|
||||
{
|
||||
ReportRenderer::inlineToBrowser(
|
||||
Sms::SMS_CONTENT_TYPE,
|
||||
$this->rendering
|
||||
);
|
||||
}
|
||||
|
||||
public function getRenderedReport()
|
||||
{
|
||||
return $this->rendering;
|
||||
}
|
||||
|
||||
public function renderFrontPage($reportTitle, $prettyDate, $description, $reportMetadata, $segment)
|
||||
{
|
||||
// nothing to do
|
||||
}
|
||||
|
||||
public function renderReport($processedReport)
|
||||
{
|
||||
// nothing to do
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue