silverstripe-cms/tests/php/Model/VirtualPageTest_TestDBField.php

15 lines
291 B
PHP
Raw Normal View History

<?php
2017-08-09 04:53:38 +02:00
namespace SilverStripe\CMS\Tests\Model;
2017-08-09 03:25:12 +02:00
use SilverStripe\Dev\TestOnly;
use SilverStripe\ORM\FieldType\DBVarchar;
class VirtualPageTest_TestDBField extends DBVarchar implements TestOnly
{
public function forTemplate()
{
2022-04-13 07:07:59 +02:00
return strtoupper($this->XML() ?? '');
}
}