Свойство | Тип | Описание | |
---|---|---|---|
$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 ) |
abstract public getAttachments ( $report, $processedReports, $prettyDate ) : array | ||
$report | ||
$processedReports | ||
$prettyDate | ||
Результат | array |
protected static getClassNameFromClassId ( $rendererType ) |
protected static getInvalidClassIdExceptionMessage ( $rendererType ) |
protected static getOutputPath ( $filename ) : string | ||
$filename | ||
Результат | string | path of file in temp directory |
abstract public getRenderedReport ( ) |
public static getStaticGraph ( $reportMetadata, $width, $height, $evolution, $segment ) |
protected static inlineToBrowser ( $contentType, $content ) |
protected static normalizeRendererType ( $rendererType ) |
protected static processTableFormat ( $reportMetadata, $report, $reportColumns ) : array | ||
$reportMetadata | array | |
$report | DataTable | |
$reportColumns | array | |
Результат | array | DataTable $report & array $columns |
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 |
abstract public renderReport ( array $processedReport ) | ||
$processedReport | array | @see API::getProcessedReport() |
protected static sendToBrowser ( $filename, $extension, $contentType, $content ) |
abstract public sendToBrowserDownload ( string $filename ) | ||
$filename | string | without path & without format extension |
abstract public sendToBrowserInline ( string $filename ) | ||
$filename | string | without path & without format extension |
abstract public sendToDisk ( string $filename ) : string | ||
$filename | string | without path & without format extension |
Результат | string | path of file |
protected static writeFile ( $filename, $extension, $content ) |