set_title

 
          set_title(string $title)  
This is one of the appearance customization methods supported in Smart Report Engine. It allows you to add a title for your report that should appear in the header area of your report.
# This method is available in both the community edition and the commercial edition .

# Parameters

Parameter Description
$titleyour report title.

# 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_title("the report title goes here")
       ->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();
}