mirror of
https://github.com/silverstripe/silverstripe-fulltextsearch
synced 2024-10-22 14:05:29 +02:00
23 lines
519 B
PHP
23 lines
519 B
PHP
<?php
|
|
|
|
namespace SilverStripe\FullTextSearch\Tests\SolrIndexTest;
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
use SilverStripe\ORM\DataObject;
|
|
|
|
class SolrIndexTest_MyDataObjectOne extends DataObject implements TestOnly
|
|
{
|
|
private static $db = [
|
|
'Title' => 'Varchar(255)',
|
|
'ShowInSearch' => 'Boolean',
|
|
'CanViewValue' => 'Boolean(true)',
|
|
];
|
|
|
|
private static $table_name = 'SolrIndexTestMyDataObjectOne';
|
|
|
|
public function canView($member = null)
|
|
{
|
|
return $this->CanViewValue;
|
|
}
|
|
}
|