mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
Removed deprecated Register::register() and unregister()
Report automatically includes reports instead, and add_excluded_reports() can be used to exclude certain reports
This commit is contained in:
parent
d006c08db3
commit
35bcf69c01
@ -137,28 +137,6 @@ class SS_Report extends ViewableData {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated 3.0
|
|
||||||
* All subclasses of SS_Report now appear in the report admin, no need to register or unregister.
|
|
||||||
*
|
|
||||||
* Register a report.
|
|
||||||
* @param $list The list to add the report to: "ReportAdmin" or "SideReports"
|
|
||||||
* @param $reportClass The class of the report to add.
|
|
||||||
* @param $priority The priority. Higher numbers will appear furhter up in the reports list.
|
|
||||||
* The default value is zero.
|
|
||||||
*/
|
|
||||||
static public function register($list, $reportClass, $priority = 0) {
|
|
||||||
Deprecation::notice('3.0', 'All subclasses of SS_Report now appear in the report admin, no need to register');
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated 3.0
|
|
||||||
* All subclasses of SS_Report now appear in the report admin, no need to register or unregister.
|
|
||||||
*/
|
|
||||||
static public function unregister($list, $reportClass) {
|
|
||||||
self::add_excluded_reports($reportClass);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Exclude certain reports classes from the list of Reports in the CMS
|
* Exclude certain reports classes from the list of Reports in the CMS
|
||||||
* @param $reportClass Can be either a string with the report classname or an array of reports classnames
|
* @param $reportClass Can be either a string with the report classname or an array of reports classnames
|
||||||
|
Loading…
Reference in New Issue
Block a user