mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
24 lines
543 B
PHP
24 lines
543 B
PHP
|
<?php
|
||
|
|
||
|
use SilverStripe\Dev\TestOnly;
|
||
|
|
||
|
class SiteTreeTest_ClassD extends Page implements TestOnly
|
||
|
{
|
||
|
// Only allows this class, no children classes
|
||
|
private static $allowed_children = array('*SiteTreeTest_ClassC');
|
||
|
|
||
|
private static $extensions = [
|
||
|
'SiteTreeTest_ExtensionA',
|
||
|
'SiteTreeTest_ExtensionB',
|
||
|
];
|
||
|
|
||
|
public $canEditValue = null;
|
||
|
|
||
|
public function canEdit($member = null)
|
||
|
{
|
||
|
return isset($this->canEditValue)
|
||
|
? $this->canEditValue
|
||
|
: parent::canEdit($member);
|
||
|
}
|
||
|
}
|