FiReport (Class)
From FiFormsWiki
class FiReport
An abstract class for generating a report from a query or tree of queries. The FiReportXML class extends this class into a working implementation to create an XML report from a tree of SQL queries.
Contents |
Properties
| $connections | Array of connections to database server(s). Each element in the array contains server, user, passwd, and link. |
| $docString | contents of the document to be sent to client |
| $dynParams | array of dynamic parameters (used for sub queries) |
| $mimetype | Mime type of output |
| $queryset | array (tree) of queries |
Method Detail
FiReport
Constructs a new FiReport object
Syntax: FiReport()
Returns
A FiReport object
generateReport
generates the reports and outputs it to the client
Syntax: generateReport()
Returns
N/A
getDocString
generates the output of the report and stores it in $this->docString
Syntax: getDocString()
Returns
N/A
loadDefinition
Initializes variables data from an XML Report Definition
Syntax: loadDefinition($defString)
Parameters
$defString - XML Report definition string
Returns
N/A
parQuery
Fill in the parameters in $query and return a valid SQL statement
Syntax: parQuery($query)
Parameters
$query - SQL Query with parameter names delimited by %%
Returns
A valid SQL string
