silverstripe-gridfieldexten.../tests/Stub/StubUnorderable.php

28 lines
514 B
PHP
Raw Normal View History

2018-02-21 12:58:48 +01:00
<?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;
}
2018-02-21 12:58:48 +01:00
}