mirror of
https://github.com/silverstripe/silverstripe-frameworktest
synced 2024-10-22 11:06:02 +02:00
40 lines
790 B
PHP
40 lines
790 B
PHP
|
<?php
|
||
|
|
||
|
namespace SilverStripe\FrameworkTest\Elemental\Model;
|
||
|
|
||
|
use SilverStripe\ORM\DataObject;
|
||
|
use SilverStripe\FrameworkTest\Elemental\Extension\MultiElementalAreasExtension;
|
||
|
|
||
|
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;
|
||
|
}
|
||
|
}
|