mirror of
https://github.com/silverstripe/silverstripe-externallinks.git
synced 2024-10-22 17:05:44 +02:00
Merge pull request #5 from halkyon/method_vis
Fixing static visibility and moving method to underneath statics
This commit is contained in:
commit
5a4682cdc0
@ -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