select_fields
select_fields
select_fields(array $selected_fields)
Parameter | Description |
---|---|
$selected_fields | An array of the MYSQL fields which you want to show in your report. These fields should exist in the selected MYSQL table(s) |
$report = new ReportOptions(SRE_PUBLIC_REPORT);
$report->select_tables(array("items"))
->select_fields(array("id", "country", "date", "units_in_stock","product_name"))
->set_grouping(array("country"));
$engine = new CustomEngine($report);
$report_path = $engine->create_report();