Fixing static visibility and moving method to underneath statics

This commit is contained in:
Sean Harvey 2014-08-13 14:27:40 +12:00
parent 606c801513
commit 3431448657

View File

@ -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;
}