FreeMED. Agata

Wrapper for internal version of Agata Reports (5 final, forked).

Summary
Wrapper for internal version of Agata Reports (5 final, forked).
Create a report and store the information in this object.
Get array of report information for reports available to the system.
Moves a completed report to a specified filename.
Get report MIME type based on stored information
Serves a merge file (which natively outputs in Postscript) as a PDF.
Get report meta-information

Functions

CreateReport

function CreateReport ($format,  
$report,  
$title,  
$parameters =  NULL)

Create a report and store the information in this object.

Parameters

$formatRendering engine used to create the output.  Valid values are: Pdf, Ps, Html, etc
$reportName of the report file used to create this report.
$titleTitle to be printed at the top of the report.
$parameters(optional) Additional qualifiers as an associative array.

Returns

Boolean, successful

GetReports

function GetReports ( )

Get array of report information for reports available to the system.

ReportToFile

function ReportToFile ($filename)

Moves a completed report to a specified filename.

Parameters

$filenameTarget file name

Returns

Boolean, if successful

ServeReport

function ServeReport ( )

Get report MIME type based on stored information

Returns

Content-type header MIME type

ServeMergeAsPDF

function ServeMergeAsPDF ( )

Serves a merge file (which natively outputs in Postscript) as a PDF.

Returns

Content-type header MIME type

_ReadMetaInformation

function _ReadMetaInformation ($report)

Get report meta-information

Returns

Array containing an associative array containing the meta-information.

function CreateReport ($format,  
$report,  
$title,  
$parameters =  NULL)
Create a report and store the information in this object.
function GetReports ( )
Get array of report information for reports available to the system.
function ReportToFile ($filename)
Moves a completed report to a specified filename.
function ServeReport ( )
Get report MIME type based on stored information
function ServeMergeAsPDF ( )
Serves a merge file (which natively outputs in Postscript) as a PDF.
function _ReadMetaInformation ($report)
Get report meta-information