From f60c0c7ed7ad250b81875d79f61a51b6e2f07cb0 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Wed, 1 Oct 2008 09:54:39 +0000 Subject: [PATCH] MINOR Converted spaces to tabs for code syntax consistency in ReportAdmin. MINOR Added TODOs for areas of code that needs some work, either in documentation or code cleanup. git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@63458 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/ReportAdmin.php | 55 ++++++++++++++++++++++++-------------------- 1 file changed, 30 insertions(+), 25 deletions(-) diff --git a/code/ReportAdmin.php b/code/ReportAdmin.php index 51fe433a..66fddbc6 100755 --- a/code/ReportAdmin.php +++ b/code/ReportAdmin.php @@ -1,6 +1,11 @@ reportEditFormFor($id); else return false; } - + /** * Return a Form instance with fields for the * particular report currently viewed. @@ -159,15 +164,15 @@ class ReportAdmin extends LeftAndMain { if(is_numeric($id)) $page = DataObject::get_by_id('SiteTree', $id); $reportClass = is_object($page) ? 'Report_' . $page->ClassName : $id; - $obj = new $reportClass(); - if($obj) $fields = $obj->getCMSFields(); + $obj = new $reportClass(); + if($obj) $fields = $obj->getCMSFields(); $idField = new HiddenField('ID'); $idField->setValue($id); $fields->push($idField); $form = new Form($this, 'EditForm', $fields, $actions); - + return $form; } @@ -197,4 +202,4 @@ class ReportAdmin extends LeftAndMain { } } -?> +?> \ No newline at end of file