mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
34 lines
742 B
PHP
34 lines
742 B
PHP
<?php
|
|
|
|
namespace SilverStripe\Forms\Tests\GridField\GridFieldTest;
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
use SilverStripe\ORM\DataObject;
|
|
use SilverStripe\ORM\Filters\EndsWithFilter;
|
|
|
|
class Stadium extends DataObject implements TestOnly
|
|
{
|
|
private static $table_name = 'GridFieldTest_Stadium';
|
|
|
|
private static $db = [
|
|
'Name' => 'Varchar',
|
|
'City' => 'Varchar',
|
|
'Country' => 'Varchar',
|
|
'Type' => 'Varchar'
|
|
];
|
|
|
|
private static $searchable_fields = [
|
|
'Name',
|
|
'City' => [
|
|
'filter' => EndsWithFilter::class
|
|
],
|
|
'Country' => [
|
|
'filter' => 'ExactMatchFilter'
|
|
],
|
|
];
|
|
|
|
private static $extensions = [
|
|
StadiumExtension::class,
|
|
];
|
|
}
|