mirror of
https://github.com/silverstripe/silverstripe-externallinks.git
synced 2024-10-22 17:05:44 +02:00
29 lines
536 B
PHP
29 lines
536 B
PHP
|
<?php
|
||
|
|
||
|
class BrokenExternalLinks extends DataObject {
|
||
|
|
||
|
private static $db = array(
|
||
|
'Link' => 'Varchar(2083)', // 2083 is the maximum length of a URL in Internet Explorer.
|
||
|
'HTTPCode' =>'Int'
|
||
|
);
|
||
|
|
||
|
private static $has_one = array(
|
||
|
'Page' => 'Page'
|
||
|
);
|
||
|
|
||
|
public static $summary_fields = array(
|
||
|
'Page.Title' => 'Page',
|
||
|
'HTTPCode' => 'HTTP Code',
|
||
|
'Created' => 'Created'
|
||
|
);
|
||
|
|
||
|
public static $searchable_fields = array(
|
||
|
'HTTPCode' => array('title' => 'HTTP Code')
|
||
|
);
|
||
|
|
||
|
function canEdit($member = false) {
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
}
|