i-lateral /
silverstripe-modeladminplus
| 1 | <?php |
||
| 2 | |||
| 3 | namespace ilateral\SilverStripe\ModelAdminPlus\Tests; |
||
| 4 | |||
| 5 | use SilverStripe\Dev\TestOnly; |
||
| 6 | use SilverStripe\ORM\DataObject; |
||
| 7 | |||
| 8 | class Contact extends DataObject implements TestOnly |
||
| 9 | { |
||
| 10 | private static $table_name = 'ModelAdminPlus_Contact'; |
||
|
0 ignored issues
–
show
introduced
by
Loading history...
|
|||
| 11 | |||
| 12 | private static $db = [ |
||
|
0 ignored issues
–
show
|
|||
| 13 | 'Name' => 'Varchar', |
||
| 14 | 'Phone' => 'Varchar' |
||
| 15 | ]; |
||
| 16 | |||
| 17 | private static $summary_fields = [ |
||
|
0 ignored issues
–
show
|
|||
| 18 | 'ID' => 'ID', |
||
| 19 | 'Name' => 'Name' |
||
| 20 | ]; |
||
| 21 | |||
| 22 | private static $export_fields = [ |
||
|
0 ignored issues
–
show
|
|||
| 23 | 'Name' => 'Name', |
||
| 24 | 'Phone'=> 'Phone' |
||
| 25 | ]; |
||
| 26 | } |
||
| 27 |