mirror of
https://github.com/silverstripe/silverstripe-frameworktest
synced 2024-10-22 11:06:02 +02:00
44 lines
859 B
PHP
44 lines
859 B
PHP
<?php
|
|
|
|
namespace SilverStripe\FrameworkTest\Elemental\Model;
|
|
|
|
use SilverStripe\ORM\DataObject;
|
|
use SilverStripe\FrameworkTest\Elemental\Extension\MultiElementalAreasExtension;
|
|
|
|
if (!class_exists(MultiElementalAreasExtension::class)) {
|
|
return;
|
|
}
|
|
|
|
class MultiElementalBehatTestObject extends DataObject
|
|
{
|
|
private static $db = [
|
|
'Title' => 'Varchar',
|
|
];
|
|
|
|
private static $table_name = 'ElementalMultiBehatTestObject';
|
|
|
|
private static $extensions = [
|
|
MultiElementalAreasExtension::class,
|
|
];
|
|
|
|
public function canView($member = null)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function canEdit($member = null)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function canDelete($member = null)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function canCreate($member = null, $context = [])
|
|
{
|
|
return true;
|
|
}
|
|
}
|