silverstripe-googlesitemaps/tests/Model/UnviewableDataObject.php
2017-10-20 11:16:53 +13:00

26 lines
468 B
PHP

<?php
namespace Wilr\GoogleSitemaps\Tests\Model;
use SilverStripe\ORM\DataObject;
use SilverStripe\Dev\TestOnly;
use SilverStripe\Control\Director;
class UnviewableDataObject extends DataObject implements TestOnly
{
private static $db = array(
'Priority' => 'Varchar(10)'
);
public function canView($member = null)
{
return false;
}
public function AbsoluteLink()
{
return Director::absoluteBaseURL();
}
}