From 343144865718a4a943749d064e9a33b81ab827b5 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Wed, 13 Aug 2014 14:27:40 +1200 Subject: [PATCH] Fixing static visibility and moving method to underneath statics --- code/model/BrokenExternalLink.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/code/model/BrokenExternalLink.php b/code/model/BrokenExternalLink.php index ef1f52d..78ed49c 100644 --- a/code/model/BrokenExternalLink.php +++ b/code/model/BrokenExternalLink.php @@ -18,24 +18,24 @@ class BrokenExternalLink extends DataObject { 'Status' => 'BrokenExternalPageTrackStatus' ); - /** - * @return SiteTree - */ - public function Page() { - return $this->Track()->Page(); - } - - public static $summary_fields = array( + private static $summary_fields = array( 'Created' => 'Checked', 'Link' => 'External Link', 'HTTPCodeDescription' => 'HTTP Error Code', 'Page.Title' => 'Page link is on' ); - public static $searchable_fields = array( + private static $searchable_fields = array( 'HTTPCode' => array('title' => 'HTTP Code') ); + /** + * @return SiteTree + */ + public function Page() { + return $this->Track()->Page(); + } + public function canEdit($member = false) { return false; }