Hai , i am want to filter data from array
showing error " Fatal error: MyReport cannot use koolreport\processes\Filter "
please help me ?
<?php
//MyReport.php
require APPPATH."/libraries/koolreport/autoload.php";
class MyReport extends \koolreport\KoolReport
{
use \koolreport\clients\Bootstrap;
use \koolreport\processes\Filter;
public function settings()
{
return array(
"dataSources"=>array(
"myarray_source"=>array(
"class"=>'\koolreport\datasources\ArrayDataSource',
"dataFormat"=>"associate",
"data"=>$this->params["myarray"]
),
)
);
}
function setup()
{
$this->src("myarray_source")
->pipe(
$this->dataStore("data")
)
->pipe(new Filter(array(
array("country","=","France")
)));
}
}