silverstripe-googlesitemaps/tests/NamespacedTestObject.php

25 lines
452 B
PHP
Raw Normal View History

<?php
namespace SilverStripe\GoogleSitemaps;
2016-11-02 12:39:25 +01:00
use SilverStripe\Control\Director;
use SilverStripe\Dev\TestOnly;
use SilverStripe\ORM\DataObject;
class Test_DataObject extends DataObject implements TestOnly
{
2017-09-14 21:36:11 +02:00
private static $db = [
'Priority' => 'Varchar(10)'
2017-09-14 21:36:11 +02:00
];
public function canView($member = null)
{
return true;
}
public function AbsoluteLink()
{
return Director::absoluteBaseURL();
}
}