mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
c2c75aa9e3
Fix link tracking
21 lines
465 B
PHP
21 lines
465 B
PHP
<?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';
|
|
}
|
|
}
|