set_records_per_page
set_records_per_page
set_records_per_page(int $records_number = 25)
Parameter | Description |
---|---|
$records_per_page | an integer parameter representing the number of records per page in the generated report. If omitted, the generated report will have 25 records per page. |
try{
$report = new ReportOptions(SRE_PUBLIC_REPORT);
$report->select_tables(array("items"))
->set_records_per_page(10)
->select_all_fields();
$engine = new CustomEngine($report);
$report_path = $engine->create_report();
echo "Your report URL:" . $report_path;
} catch (Exception $ex) {
echo 'Caught exception message: '. $ex->getMessage();
}