set_grouping
set_grouping
set_grouping(array $group_by_array)
Parameter | Description |
---|---|
$group_by_array | The array of the column(s) by which you want to group your generated report. |
$report = new ReportOptions(SRE_PUBLIC_REPORT);
$report->select_tables(array("items"))
->set_grouping(array("country"))
->select_all_fields();
$engine = new CustomEngine($report);
$report_path = $engine->create_report();
if ($report_path) {
echo "Your report URL:" . $report_path;
}