![]() |
Tina4Stack
v1.0.1
The Tina4 Stack
|
Public Member Functions | |
__construct ($reportPath="reports", $outputPath="output", $iniFile="reta.ini", $retaPath="") | |
generate ($reportName="test", $sql, $outputType="pdf,csv", $debug=false) | |
Reta makes the reporting possible by using the open source engine of Report Manager Reta requires wine to run on Linux and uses the reta.sh shell wrapper
Currently supported database engines are: sqlite3, firebird-2.5, mysql
Reta::__construct | ( | $reportPath = "reports" , |
|
$outputPath = "output" , |
|||
$iniFile = "reta.ini" , |
|||
$retaPath = "" |
|||
) |
The constructor for Reta
String | $reportPath | Relative to the document root |
String | $outputPath | Relative to the document root |
String | $iniFile | Path to the iniFile, normally is in the same folder as reta, but you may want more. |
String | $retaPath | Path to reta if the system can't determine it, usually one folder below the document root |
Reta::generate | ( | $reportName = "test" , |
|
$sql, | |||
$outputType = "pdf,csv" , |
|||
$debug = false |
|||
) |
generate calls the rita engine to generate the report.
String | $reportName | The name of the report file without the rep extension |
String | $sql | A valid SQL statement which will work with the database |
String | $outputType | A comma separated string which can include : pdf,csv,xls,html |
Boolean | $debug | Turn on the debugging messages for troubleshooting |