FiReportXML

From FiFormsWiki

Jump to: navigation, search

class FiReportXML extends FiReport

A class to generate an XML report from a set of queries that generate a grouped result set.

This can easily be transformed using XSLT to generate a wide variety of reports. Using a CSS with a standards-compliant browser like Mozilla/Gecko, very professional looking printed reports can be generated. XSLT can also be used to generate other type of output such as spreadsheets or Kugar reports. Using the provided XMLDefLoader, an XML report definition can be created by a database user. The user can then enter parameters before submitting the report definition to a report-generation script. Please note the security considerations relating to FiReports.

Contents

Properties

$serverTransform if TRUE, transform XML on server
$stylesheet URI of stylesheet to apply to XML result


Properties inherited from FiReport: $connections $docString $dynParams $mimetype $queryset

Method Detail

Methods inherited from FiReport

  • FiReport
  • generateReport
  • getDocString
  • loadDefinition
  • parQuery


FiReportXML

Constructs a new FiReportXML Object

Syntax: FiReportXML()


Returns

A FiReportXML Object


appendDataSet

Execute a single query and append the resulting XML to docString. For a tree of XML objects, this function calls itself recursively.

Syntax: appendDataSet($queryset)


Parameters

$queryset - Array of queries. Each element in the query has sql, name, and subQueries

Returns

N/A

Personal tools