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

21 lines
465 B
PHP
Raw Normal View History

<?php
use SilverStripe\Dev\TestOnly;
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';
}
}