set_layout
set_layout
set_layout(string $layout)
Parameter | Description |
---|---|
$layout | One of "AlignLeft", "Block", "Stepped", "Outline", "Horizontal", or "mobile" |
try{
$report = new ReportOptions(SRE_PUBLIC_REPORT);
$report->select_tables(array("items"))
->set_layout("Block")
->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();
}