MIOLO26
|
Membros públicos | |
__construct ($db='admin', $connectionType='local') | |
execute ($module, $name, $parameters=NULL, $filetype='PDF', $save=FALSE, $onlyGenerate=FALSE) | |
getReportFilePath ($module, $name, $parameters=NULL, $filetype='PDF', $save=FALSE) | |
generatePhpJasper ($fileIn, $fileOut, $filetype, $parameters, $classPath, $download=true) | |
fill ($fileIn, $fileOut, $filetype, $parameters, $classPath, $save, $download=true) | |
executeJRXML ($module, $name, $parameters=NULL, $filetype='PDF', $save=FALSE, $download=false) | |
setQuery ($query) | |
getQuery () | |
getAbsoluteFileOut () | |
setAbsoluteFileOut ($absoluteFileOut) | |
beforeGenerateReport () | |
afterGenerateReport () | |
getArquivoRecemGerado () | |
setArquivoRecemGerado ($arquivoRecemGerado) | |
Membros públicos estáticos | |
static | getParameters ($module=null, $report=null) |
Campos de Dados | |
const | JAVA_BIG_DECIMAL = 'java.math.BigDecimal' |
const | JAVA_BOOLEAN = 'java.lang.Boolean' |
const | JAVA_DATE = 'java.util.Date' |
const | JAVA_DOUBLE = 'java.lang.Double' |
const | JAVA_FLOAT = 'java.lang.Float' |
const | JAVA_INTEGER = 'java.lang.Integer' |
const | JAVA_LONG = 'java.lang.Long' |
const | JAVA_NUMBER = 'java.lang.Number' |
const | JAVA_SHORT = 'java.lang.Short' |
const | JAVA_STRING = 'java.lang.String' |
const | JAVA_TIME = 'java.sql.Time' |
const | JAVA_TIMESTAMP = 'java.sql.Timestamp' |
const | TYPE_BOOLEAN = 'boolean' |
const | TYPE_DATE = 'date' |
const | TYPE_FLOAT = 'float' |
const | TYPE_INTEGER = 'integer' |
const | TYPE_STRING = 'string' |
const | TYPE_TIME = 'time' |
const | TYPE_TIMESTAMP = 'timestamp' |
$filetype | |
$fileout | |
$fileexp | |
$objDb | |
$db | |
$connectionType | |
__construct | ( | $db = 'admin', | |
$connectionType = 'local' ) |
MJasperReport constructor.
string | $db | Database name. |
string | $connectionType | Connection type. |
afterGenerateReport | ( | ) |
Callback method
beforeGenerateReport | ( | ) |
Callback method
execute | ( | $module, | |
$name, | |||
$parameters = NULL, | |||
$filetype = 'PDF', | |||
$save = FALSE, | |||
$onlyGenerate = FALSE ) |
Generate the report from a jasper file.
string | $module | Module where the report is located. |
string | $name | Name of the report (without extension). |
array | $parameters | Parameters to be passed to the report. |
string | $filetype | Report file type. |
boolean | $save | Whether to save the report or download it. |
boolean | $onlyGenerate | true to only generate the report file, without any browser action. |
executeJRXML | ( | $module, | |
$name, | |||
$parameters = NULL, | |||
$filetype = 'PDF', | |||
$save = FALSE, | |||
$download = false ) |
Generate the report from a JRXML file.
string | $module | Module where the report is located. |
string | $name | Name of the report (without extension). |
array | $parameters | Parameters to be passed to the report. |
string | $filetype | Report file type. |
boolean | $save | Whether to save the report or download it. |
boolean | $download | Se for true, vai baixar o relatório, senão só gera o conteúdo. |
fill | ( | $fileIn, | |
$fileOut, | |||
$filetype, | |||
$parameters, | |||
$classPath, | |||
$save, | |||
$download = true ) |
generatePhpJasper | ( | $fileIn, | |
$fileOut, | |||
$filetype, | |||
$parameters, | |||
$classPath, | |||
$download = true ) |
$fileIn | ||
$fileOut | ||
$filetype | ||
$parameters | ||
$classPath | ||
bool | $download |
Exception |
getAbsoluteFileOut | ( | ) |
getArquivoRecemGerado | ( | ) |
Obtem o arquivo recém gerado.
|
static |
Get the report parameters. Return an array with this format: array( 'parameter1id' => array( 'type' => some of TYPE_ constants, 'ohterProperty' => 'propertyValue', ... ), 'parameter2id' => array( 'type' => some of TYPE_ constants, ... ), ... )
getQuery | ( | ) |
getReportFilePath | ( | $module, | |
$name, | |||
$parameters = NULL, | |||
$filetype = 'PDF', | |||
$save = FALSE ) |
Get the generated report filename.
string | $module | Module where the report is located. |
string | $name | Name of the report (without extension). |
array | $parameters | Parameters to be passed to the report. |
string | $filetype | Report file type. |
boolean | $save | Whether to save the report or download it. |
setAbsoluteFileOut | ( | $absoluteFileOut | ) |
setArquivoRecemGerado | ( | $arquivoRecemGerado | ) |
setQuery | ( | $query | ) |
string | $query | SQL query. |
$connectionType |
$db |
$fileexp |
$fileout |
$filetype |
$objDb |
const JAVA_BIG_DECIMAL = 'java.math.BigDecimal' |
Java type constants.
const JAVA_BOOLEAN = 'java.lang.Boolean' |
const JAVA_DATE = 'java.util.Date' |
const JAVA_DOUBLE = 'java.lang.Double' |
const JAVA_FLOAT = 'java.lang.Float' |
const JAVA_INTEGER = 'java.lang.Integer' |
const JAVA_LONG = 'java.lang.Long' |
const JAVA_NUMBER = 'java.lang.Number' |
const JAVA_SHORT = 'java.lang.Short' |
const JAVA_STRING = 'java.lang.String' |
const JAVA_TIME = 'java.sql.Time' |
const JAVA_TIMESTAMP = 'java.sql.Timestamp' |
const TYPE_BOOLEAN = 'boolean' |
Simplified type constants.
const TYPE_DATE = 'date' |
const TYPE_FLOAT = 'float' |
const TYPE_INTEGER = 'integer' |
const TYPE_STRING = 'string' |
const TYPE_TIME = 'time' |
const TYPE_TIMESTAMP = 'timestamp' |