ReportDataSource is a special data source which help to get data from another report. Let imagine we create a report that requires data already existed in another report. We want to connect to existed report and get those data rather than spending time to rewrite code.
ReportDataSource will help you to do so.
|string||Must set to |
|string||The full class name of source report you want to get data from.|
|array||array()||Parameters that will be inserted to source report when initiated|
|string||This is optional parameter. In case that you need to create more than one datasource from single source report (only difference in params) then you specify different key for each datasource.|
|ReportDataSource||This function is used in |
setup() function of report. It specifies the name of data store in the source report we want to get data from.
class TotalSaleReport extends \koolreport\KoolReport
public function settings()
public function setup()
->dataStore('sale') //We want to get data from "sale" data store of HardwareSaleReport