2020-04-08 23:04:01 +02:00
|
|
|
<?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)',
|
2020-06-10 07:22:20 +02:00
|
|
|
'ShowInSearch' => 'Boolean',
|
|
|
|
'CanViewValue' => 'Boolean(true)',
|
2020-04-08 23:04:01 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
private static $table_name = 'SolrIndexTestMyDataObjectOne';
|
2020-06-10 07:22:20 +02:00
|
|
|
|
|
|
|
public function canView($member = null)
|
|
|
|
{
|
|
|
|
return $this->CanViewValue;
|
|
|
|
}
|
2020-04-08 23:04:01 +02:00
|
|
|
}
|