set_records_per_page

 
          set_records_per_page(int $records_number = 25)  
This method sets the number of records per page in the generated reports. The default value is 25 records per page. Your generated report will have a pager to navigate through pages, additionality it will have the ability to print and export a single page or all pages.
# This method is available in both the community edition and the commercial edition .

# Parameters

Parameter Description
$records_per_pagean integer parameter representing the number of records per page in the generated report. If omitted, the generated report will have 25 records per page.

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