| 1 | <?php |
||
| 2 | class RegistryPageTestContact extends DataObject implements RegistryDataInterface { |
||
| 3 | |||
| 4 | private static $db = array( |
||
| 5 | 'FirstName' => 'Varchar(50)', |
||
| 6 | 'Surname' => 'Varchar(50)' |
||
| 7 | ); |
||
| 8 | |||
| 9 | private static $summary_fields = array( |
||
| 10 | 'FirstName' => 'First name', |
||
| 11 | 'Surname' => 'Surname' |
||
| 12 | ); |
||
| 13 | |||
| 14 | public function getSearchFields() { |
||
| 20 | |||
| 21 | } |
||
| 22 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.