set_layout

 
          set_layout(string $layout)  
This is one of the appearance customization methods supported in Smart Report Engine. It sets the layout of your report, which can be "AlignLeft", "Block", "Stepped", "Outline", "Horizontal" or "mobile". Please be aware that your users can change the report's layout from within the report menu.
# This method is exclusive to the commercial edition and is not supported in the community edition .

# Parameters

Parameter Description
$layoutOne of "AlignLeft", "Block", "Stepped", "Outline", "Horizontal", or "mobile"

# Returns

This method returns the calling object, so it can be chained with other methods in the ‘ReportOptions’ class

# Code Example

 
           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();
}