MINOR site report for page with broken links (from r85018)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@89218 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2009-10-15 22:42:45 +00:00
parent 53d735c4f6
commit bb5d8d5ca3

View File

@ -106,6 +106,25 @@ class SideReport_RecentlyEdited extends SideReport {
}
}
/**
* Content side-report listing pages with broken links
* @package cms
* @subpackage content
*/
class SideReport_BrokenLinks extends SideReport {
function title() {
return _t('SideReport.BROKENLINKS',"Pages with broken links");
}
function records() {
return DataObject::get("SiteTree", "HasBrokenLink = 1");
}
function fieldsToShow() {
return array(
"Title" => array("NestedTitle", array("2")),
);
}
}
class SideReport_ToDo extends SideReport {
function title() {
return _t('SideReport.TODO',"To do");