mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
32 lines
622 B
PHP
32 lines
622 B
PHP
<?php
|
|
|
|
namespace SilverStripe\Dev\Tests\CsvBulkLoaderTest;
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
use SilverStripe\ORM\DataObject;
|
|
|
|
class CantDeleteModel extends DataObject implements TestOnly
|
|
{
|
|
private static $table_name = 'CsvBulkLoaderTest_CantDeleteModel';
|
|
|
|
private static array $db = [
|
|
'Title' => 'Varchar',
|
|
'AnotherField' => 'Varchar',
|
|
];
|
|
|
|
public function canCreate($member = null, $context = [])
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function canEdit($member = null)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function canDelete($member = null)
|
|
{
|
|
return false;
|
|
}
|
|
}
|