2016-04-12 12:55:34 +02:00
|
|
|
<?php
|
|
|
|
|
2017-10-20 00:16:53 +02:00
|
|
|
namespace Wilr\GoogleSitemaps\Tests\Model;
|
2016-04-12 12:55:34 +02:00
|
|
|
|
2016-11-02 12:39:25 +01:00
|
|
|
use SilverStripe\ORM\DataObject;
|
2017-10-20 00:16:53 +02:00
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
|
|
use SilverStripe\Control\Director;
|
2016-04-12 12:55:34 +02:00
|
|
|
|
2017-10-20 00:16:53 +02:00
|
|
|
class UnviewableDataObject extends DataObject implements TestOnly
|
2016-04-12 12:55:34 +02:00
|
|
|
{
|
2017-10-20 00:16:53 +02:00
|
|
|
|
|
|
|
private static $db = array(
|
2016-04-12 12:55:34 +02:00
|
|
|
'Priority' => 'Varchar(10)'
|
2017-10-20 00:16:53 +02:00
|
|
|
);
|
2016-04-12 12:55:34 +02:00
|
|
|
|
|
|
|
public function canView($member = null)
|
|
|
|
{
|
2017-10-20 00:16:53 +02:00
|
|
|
return false;
|
2016-04-12 12:55:34 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public function AbsoluteLink()
|
|
|
|
{
|
|
|
|
return Director::absoluteBaseURL();
|
|
|
|
}
|
|
|
|
}
|