parents-merge 33211 - Added getReportField & filter_onchange options to DataReports

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@45045 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2007-11-19 01:21:44 +00:00
parent 8547c5c333
commit afbca3a88f

View File

@ -517,7 +517,8 @@ HTML
}
protected function getReportType() {
return 'DataReport';
if(class_exists($this->name)) return $this->name;
else return $this->class;
}
/**
@ -568,7 +569,10 @@ class DataReport_Controller extends Controller{
$sord = array("Order.ID"=>"DESC"),
$join = array("MemberID"=>array("table"=>"Member", "field"=>"ID"))
);
$orderReport->filter_onchange();
if($orderReport->hasMethod('getReportField')) $orderReport = $orderReport->getReportField();
if($orderReport->hasMethod('filter_onchange')) $orderReport->filter_onchange();
$orderReport->exportToCSV("report.csv");
}
}