for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SilverStripe\ExternalLinks\Model;
use SilverStripe\CMS\Model\SiteTree;
use SilverStripe\ExternalLinks\Model\BrokenExternalPageTrackStatus;
use SilverStripe\ExternalLinks\Model\BrokenExternalLink;
use SilverStripe\Versioned\Versioned;
use SilverStripe\ORM\DataObject;
/**
* Represents a track for a single page
*/
class BrokenExternalPageTrack extends DataObject
{
private static $table_name = 'BrokenExternalPageTrack';
$table_name
private static $db = array(
$db
'Processed' => 'Boolean'
);
private static $has_one = array(
$has_one
'Page' => SiteTree::class,
'Status' => BrokenExternalPageTrackStatus::class
private static $has_many = array(
$has_many
'BrokenLinks' => BrokenExternalLink::class
* @return SiteTree
public function Page()
return Versioned::get_by_stage(SiteTree::class, 'Stage')
->byID($this->PageID);
PageID
SilverStripe\ExternalLin...BrokenExternalPageTrack
__get
}