| Total Complexity | 2 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class RegistryPageTestContact extends DataObject implements RegistryDataInterface, TestOnly |
||
| 14 | { |
||
| 15 | private static $table_name = 'RegistryPageTestContact'; |
||
|
|
|||
| 16 | |||
| 17 | private static $use_link = false; |
||
| 18 | |||
| 19 | private static $db = [ |
||
| 20 | 'FirstName' => 'Varchar(50)', |
||
| 21 | 'Surname' => 'Varchar(50)', |
||
| 22 | ]; |
||
| 23 | |||
| 24 | private static $summary_fields = [ |
||
| 25 | 'FirstName' => 'First name', |
||
| 26 | 'Surname' => 'Surname', |
||
| 27 | ]; |
||
| 28 | |||
| 29 | private static $searchable_fields = [ |
||
| 30 | 'FirstName', |
||
| 31 | 'Surname' |
||
| 32 | ]; |
||
| 33 | |||
| 34 | public function getSearchFields() |
||
| 35 | { |
||
| 36 | return new FieldList( |
||
| 37 | new TextField('FirstName', 'First name'), |
||
| 38 | new TextField('Surname', 'Surname') |
||
| 39 | ); |
||
| 40 | } |
||
| 41 | |||
| 42 | public function Link($action = null) |
||
| 46 | } |
||
| 47 | } |
||
| 48 |