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

32 lines
513 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;
class TestModel extends DataObject implements TestOnly
{
private static $table_name = 'SSViewerCacheBlockTest_Model';
2016-10-14 03:30:05 +02:00
public function Test($arg = null)
{
return $this;
}
2016-10-14 03:30:05 +02:00
public function Foo()
{
return 'Bar';
}
2016-10-14 03:30:05 +02:00
public function True()
{
return true;
}
2016-10-14 03:30:05 +02:00
public function False()
{
return false;
}
2016-10-14 03:30:05 +02:00
}