mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-10-22 17:05:39 +02:00
6becfc2f89
Also adds a .gitignore to ignore files created by in-module testing.
28 lines
514 B
PHP
28 lines
514 B
PHP
<?php
|
|
|
|
namespace Symbiote\GridFieldExtensions\Tests\Stub;
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
use SilverStripe\ORM\DataObject;
|
|
|
|
class StubUnorderable extends DataObject implements TestOnly
|
|
{
|
|
private static $db = [
|
|
'Title' => 'Varchar',
|
|
];
|
|
|
|
private static $table_name = 'StubUnorderable';
|
|
|
|
private $canEdit = false;
|
|
|
|
public function setCanEdit($canEdit)
|
|
{
|
|
$this->canEdit = $canEdit;
|
|
}
|
|
|
|
public function canEdit($member = null)
|
|
{
|
|
return $this->canEdit;
|
|
}
|
|
}
|