mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
28 lines
623 B
PHP
28 lines
623 B
PHP
<?php
|
|
|
|
namespace SilverStripe\CMS\Tests\Model;
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
use SilverStripe\CMS\Model\SiteTree;
|
|
|
|
class VirtualPageTest_ClassA extends SiteTree implements TestOnly
|
|
{
|
|
private static $table_name = 'VirtualPageTest_ClassA';
|
|
|
|
private static $db = [
|
|
'MyInitiallyCopiedField' => 'Text',
|
|
'MyVirtualField' => 'Text',
|
|
'MyNonVirtualField' => 'Text',
|
|
'CastingTest' => VirtualPageTest_TestDBField::class,
|
|
];
|
|
|
|
private static $allowed_children = [
|
|
VirtualPageTest_ClassB::class,
|
|
];
|
|
|
|
public function modelMethod()
|
|
{
|
|
return 'hi there';
|
|
}
|
|
}
|