mirror of
https://github.com/silverstripe/silverstripe-externallinks.git
synced 2024-10-22 17:05:44 +02:00
ENH Use class name instead of self
This commit is contained in:
parent
d1bf460e97
commit
e9de952980
@ -37,7 +37,7 @@ class BrokenExternalPageTrackStatus extends DataObject implements i18nEntityProv
|
|||||||
*/
|
*/
|
||||||
public static function get_latest()
|
public static function get_latest()
|
||||||
{
|
{
|
||||||
return self::get()
|
return BrokenExternalPageTrackStatus::get()
|
||||||
->sort('ID', 'DESC')
|
->sort('ID', 'DESC')
|
||||||
->first();
|
->first();
|
||||||
}
|
}
|
||||||
@ -118,13 +118,13 @@ class BrokenExternalPageTrackStatus extends DataObject implements i18nEntityProv
|
|||||||
public static function get_or_create()
|
public static function get_or_create()
|
||||||
{
|
{
|
||||||
// Check the current status
|
// Check the current status
|
||||||
$status = self::get_latest();
|
$status = BrokenExternalPageTrackStatus::get_latest();
|
||||||
if ($status && $status->Status == 'Running') {
|
if ($status && $status->Status == 'Running') {
|
||||||
$status->updateStatus();
|
$status->updateStatus();
|
||||||
return $status;
|
return $status;
|
||||||
}
|
}
|
||||||
|
|
||||||
return self::create_status();
|
return BrokenExternalPageTrackStatus::create_status();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -135,7 +135,7 @@ class BrokenExternalPageTrackStatus extends DataObject implements i18nEntityProv
|
|||||||
public static function create_status()
|
public static function create_status()
|
||||||
{
|
{
|
||||||
// If the script is to be started create a new status
|
// If the script is to be started create a new status
|
||||||
$status = self::create();
|
$status = BrokenExternalPageTrackStatus::create();
|
||||||
$status->updateJobInfo('Creating new tracking object');
|
$status->updateJobInfo('Creating new tracking object');
|
||||||
|
|
||||||
// Setup all pages to test
|
// Setup all pages to test
|
||||||
|
Loading…
Reference in New Issue
Block a user