mirror of
https://github.com/silverstripe/silverstripe-externallinks.git
synced 2024-10-22 17:05:44 +02:00
29 lines
499 B
PHP
29 lines
499 B
PHP
<?php
|
|
|
|
/**
|
|
* Represents a track for a single page
|
|
*/
|
|
class BrokenExternalPageTrack extends DataObject {
|
|
|
|
private static $db = array(
|
|
'Processed' => 'Boolean'
|
|
);
|
|
|
|
private static $has_one = array(
|
|
'Page' => 'SiteTree',
|
|
'Status' => 'BrokenExternalPageTrackStatus'
|
|
);
|
|
|
|
private static $has_many = array(
|
|
'BrokenLinks' => 'BrokenExternalLink'
|
|
);
|
|
|
|
/**
|
|
* @return SiteTree
|
|
*/
|
|
public function Page() {
|
|
return Versioned::get_by_stage('SiteTree', 'Stage')
|
|
->byID($this->PageID);
|
|
}
|
|
}
|