silverstripe-framework/tests/php/View/SSTemplateEngineCacheBlockTest/TestModel.php
Guy Sartorelli cd8090d247
API Refactor template layer into its own module
Includes the following large-scale changes:
- Impoved barrier between model and view layers
- Improved casting of scalar to relevant DBField types
- Improved capabilities for rendering arbitrary data in templates
2024-10-14 14:52:36 +13:00

32 lines
529 B
PHP

<?php
namespace SilverStripe\View\Tests\SSTemplateEngineCacheBlockTest;
use SilverStripe\Dev\TestOnly;
use SilverStripe\ORM\DataObject;
class TestModel extends DataObject implements TestOnly
{
private static $table_name = 'SSTemplateEngineCacheBlockTest_Model';
public function Test($arg = null)
{
return $this;
}
public function Foo()
{
return 'Bar';
}
public function True()
{
return true;
}
public function False()
{
return false;
}
}