silverstripe-cms/tests/php/Model/VirtualPageTest_ClassA.php
2017-08-09 17:00:58 +12:00

26 lines
512 B
PHP

<?php
namespace SilverStripe\CMS\Tests;
use SilverStripe\Dev\TestOnly;
use Page;
class VirtualPageTest_ClassA extends Page implements TestOnly
{
private static $db = array(
'MyInitiallyCopiedField' => 'Text',
'MyVirtualField' => 'Text',
'MyNonVirtualField' => 'Text',
'CastingTest' => 'VirtualPageTest_TestDBField'
);
private static $allowed_children = array('VirtualPageTest_ClassB');
public function modelMethod()
{
return 'hi there';
}
}