From 20e266d5cbe6b9b8703f4ac185eb5d5a63495585 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Wed, 8 Oct 2008 04:31:29 +0000 Subject: [PATCH] BUGF Renamed Report class to SSReport, file name wasn't altered but class name was git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@63842 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/SSReport.php | 89 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 code/SSReport.php diff --git a/code/SSReport.php b/code/SSReport.php new file mode 100644 index 00000000..f8831d6a --- /dev/null +++ b/code/SSReport.php @@ -0,0 +1,89 @@ +{$this->title}"), + new LiteralField('ReportDescription', "

{$this->description}

"), + $this->getReportField() + ) + ) + ); + + $this->extend('augmentReportCMSFields', $fields); + + return $fields; + } + + /** + * Return a field, such as a {@link ComplexTableField} that is + * used to show and manipulate data relating to this report. + * + * For example, if this were an "Unprinted Orders" report, this + * field would return a table that shows all Orders with "Unprinted = 1". + * + * @return FormField subclass + */ + function getReportField() { + user_error('Please implement getReportField() on ' . $this->class, E_USER_ERROR); + } + + /** + * Return the name of this report, which + * is used by the templates to render the + * name of the report in the report tree, + * the left hand pane inside ReportAdmin. + * + * @return string + */ + function TreeTitle() { + return $this->title; + } + + /** + * Return the ID of this Report class. + * Because it doesn't have a number, we + * use the class name as the ID. + * + * @return string + */ + function ID() { + return $this->class; + } + +} + +?> \ No newline at end of file