FreeMED. Agata7

Wrapper for Agata Reports 7.x (official version)

Summary
Wrapper for Agata Reports 7.x (official version)
Create a report and store the information in this object.
Create HTML_QuickForm object to represent parameters for a report.
Figure out if a report is supposed to be an Agata “Merge” report or not
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
Get report meta-information

Functions

Agata7

function Agata7 ( )

CreateReport

function CreateReport ($format,  
$report,  
$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.
$parameters(optional) Additional qualifiers as an associative array.

Returns

Boolean, successful

CreateForm

function CreateForm ($report)

Create HTML_QuickForm object to represent parameters for a report.

Parameters

$reportName of report

Returns

HTML_QuickForm object

DetermineMergedFormat

function DetermineMergedFormat (&$report)

Figure out if a report is supposed to be an Agata “Merge” report or not

Parameters

$reportArray, passed by reference, which contains the representation of a report’s XML format.

Returns

Boolean, true if merged report, false if not.

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

_ReadMetaInformation

function _ReadMetaInformation ($report)

Get report meta-information

Returns

Array containing an associative array containing the meta-information.

function Agata7 ( )
function CreateReport ($format,  
$report,  
$parameters =  NULL)
Create a report and store the information in this object.
function CreateForm ($report)
Create HTML_QuickForm object to represent parameters for a report.
function DetermineMergedFormat (&$report)
Figure out if a report is supposed to be an Agata “Merge” report or not
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 _ReadMetaInformation ($report)
Get report meta-information