PHP 클래스 Piwik\ReportRenderer

All new Renderers must be copied in ReportRenderer and added to the $availableReportRenderers.
상속: extends BaseFactory
파일 보기 프로젝트 열기: piwik/piwik 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$idSite

공개 메소드들

메소드 설명
getAttachments ( $report, $processedReports, $prettyDate ) : array Get report attachments, ex. graph images
getRenderedReport ( ) Get rendered report
getStaticGraph ( $reportMetadata, $width, $height, $evolution, $segment )
renderFrontPage ( string $reportTitle, string $prettyDate, string $description, array $reportMetadata, array $segment ) Generate the first page.
renderReport ( array $processedReport ) Render the provided report.
sendToBrowserDownload ( string $filename ) Send rendering to browser with a 'download file' prompt
sendToBrowserInline ( string $filename ) Output rendering to browser
sendToDisk ( string $filename ) : string Save rendering to disk
setIdSite ( integer $idSite ) Sets the site id
setLocale ( string $locale ) Initialize locale settings.

보호된 메소드들

메소드 설명
getClassNameFromClassId ( $rendererType )
getInvalidClassIdExceptionMessage ( $rendererType )
getOutputPath ( $filename ) : string Return $filename with temp directory and delete file
inlineToBrowser ( $contentType, $content )
makeFilenameWithExtension ( string $filename, string $extension ) : string Append $extension to $filename
normalizeRendererType ( $rendererType )
processTableFormat ( $reportMetadata, $report, $reportColumns ) : array Convert a dimension-less report to a multi-row two-column data table
sendToBrowser ( $filename, $extension, $contentType, $content )
writeFile ( $filename, $extension, $content )

메소드 상세

getAttachments() 추상적인 공개 메소드

Get report attachments, ex. graph images
abstract public getAttachments ( $report, $processedReports, $prettyDate ) : array
$report
$processedReports
$prettyDate
리턴 array

getClassNameFromClassId() 보호된 정적인 메소드

protected static getClassNameFromClassId ( $rendererType )

getInvalidClassIdExceptionMessage() 보호된 정적인 메소드

protected static getInvalidClassIdExceptionMessage ( $rendererType )

getOutputPath() 보호된 정적인 메소드

Return $filename with temp directory and delete file
protected static getOutputPath ( $filename ) : string
$filename
리턴 string path of file in temp directory

getRenderedReport() 추상적인 공개 메소드

Get rendered report
abstract public getRenderedReport ( )

getStaticGraph() 공개 정적인 메소드

public static getStaticGraph ( $reportMetadata, $width, $height, $evolution, $segment )

inlineToBrowser() 보호된 정적인 메소드

protected static inlineToBrowser ( $contentType, $content )

makeFilenameWithExtension() 보호된 정적인 메소드

Append $extension to $filename
protected static makeFilenameWithExtension ( string $filename, string $extension ) : string
$filename string
$extension string
리턴 string filename with extension

normalizeRendererType() 보호된 정적인 메소드

protected static normalizeRendererType ( $rendererType )

processTableFormat() 보호된 정적인 메소드

Convert a dimension-less report to a multi-row two-column data table
protected static processTableFormat ( $reportMetadata, $report, $reportColumns ) : array
$reportMetadata array
$report DataTable
$reportColumns array
리턴 array DataTable $report & array $columns

renderFrontPage() 추상적인 공개 메소드

Generate the first page.
abstract public renderFrontPage ( string $reportTitle, string $prettyDate, string $description, array $reportMetadata, array $segment )
$reportTitle string
$prettyDate string formatted date
$description string
$reportMetadata array metadata for all reports
$segment array segment applied to all reports

renderReport() 추상적인 공개 메소드

Multiple calls to this method before calling outputRendering appends each report content.
abstract public renderReport ( array $processedReport )
$processedReport array @see API::getProcessedReport()

sendToBrowser() 보호된 정적인 메소드

protected static sendToBrowser ( $filename, $extension, $contentType, $content )

sendToBrowserDownload() 추상적인 공개 메소드

Send rendering to browser with a 'download file' prompt
abstract public sendToBrowserDownload ( string $filename )
$filename string without path & without format extension

sendToBrowserInline() 추상적인 공개 메소드

Output rendering to browser
abstract public sendToBrowserInline ( string $filename )
$filename string without path & without format extension

sendToDisk() 추상적인 공개 메소드

Save rendering to disk
abstract public sendToDisk ( string $filename ) : string
$filename string without path & without format extension
리턴 string path of file

setIdSite() 공개 메소드

Sets the site id
public setIdSite ( integer $idSite )
$idSite integer

setLocale() 추상적인 공개 메소드

If not called, locale settings defaults to 'en'
abstract public setLocale ( string $locale )
$locale string

writeFile() 보호된 정적인 메소드

protected static writeFile ( $filename, $extension, $content )

프로퍼티 상세

$idSite 보호되어 있는 프로퍼티

protected $idSite