silverstripe-framework/tests/php/View/SSViewerCacheBlockTest/VersionedModel.php

29 lines
623 B
PHP
Raw Normal View History

2016-10-14 03:30:05 +02:00
<?php
namespace SilverStripe\View\Tests\SSViewerCacheBlockTest;
use SilverStripe\Dev\TestOnly;
use SilverStripe\ORM\DataObject;
use SilverStripe\ORM\Versioning\Versioned;
class VersionedModel extends DataObject implements TestOnly
{
private static $table_name = 'SSViewerCacheBlockTest_VersionedModel';
2016-10-14 03:30:05 +02:00
protected $entropy = 'default';
2016-10-14 03:30:05 +02:00
private static $extensions = array(
Versioned::class
);
2016-10-14 03:30:05 +02:00
public function setEntropy($entropy)
{
$this->entropy = $entropy;
}
2016-10-14 03:30:05 +02:00
public function Inspect()
{
return $this->entropy . ' ' . Versioned::get_reading_mode();
}
2016-10-14 03:30:05 +02:00
}