mirror of
https://github.com/silverstripe/silverstripe-externallinks.git
synced 2024-10-22 17:05:44 +02:00
Fixing static visibility and moving method to underneath statics
This commit is contained in:
parent
606c801513
commit
3431448657
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user