mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
MINOR add pass thru group and sort methods
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@99497 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
dbec9a4c8a
commit
4539825a1b
@ -318,7 +318,6 @@ class SS_Report extends ViewableData {
|
|||||||
*/
|
*/
|
||||||
static function get_reports($list) {
|
static function get_reports($list) {
|
||||||
$output = array();
|
$output = array();
|
||||||
|
|
||||||
if(isset(self::$registered_reports[$list])) {
|
if(isset(self::$registered_reports[$list])) {
|
||||||
$listItems = self::$registered_reports[$list];
|
$listItems = self::$registered_reports[$list];
|
||||||
|
|
||||||
@ -497,6 +496,14 @@ abstract class SS_ReportWrapper extends SS_Report {
|
|||||||
function title() {
|
function title() {
|
||||||
return $this->baseReport->title();
|
return $this->baseReport->title();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function group() {
|
||||||
|
return $this->baseReport->hasMethod('group') ? $this->baseReport->group() : 'Group';
|
||||||
|
}
|
||||||
|
|
||||||
|
function sort() {
|
||||||
|
return $this->baseReport->hasMethod('sort') ? $this->baseReport->sort() : 0;
|
||||||
|
}
|
||||||
|
|
||||||
function description() {
|
function description() {
|
||||||
return $this->baseReport->title();
|
return $this->baseReport->title();
|
||||||
|
Loading…
Reference in New Issue
Block a user