-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NEW: Adding back in the Broken links model no model admin this time t…
…hough
- Loading branch information
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?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; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters