| 1 | <?php |
||
| 5 | class Staff extends Page |
||
|
|
|||
| 6 | { |
||
| 7 | public static $db = array( |
||
| 8 | 'TelephoneNumberDesk' => 'Varchar', |
||
| 9 | 'TelephoneNumberMobile' => 'Varchar', |
||
| 10 | 'Email' => 'Varchar', |
||
| 11 | 'ShowOnHomePage' => 'Boolean', |
||
| 12 | 'JobTitle' => 'Text', |
||
| 13 | ); |
||
| 14 | |||
| 15 | public static $has_one = array( |
||
| 16 | 'Photo' => 'Image', |
||
| 17 | ); |
||
| 18 | |||
| 19 | private static $icon = 'weboftalent-staff/icons/employee.png'; |
||
| 20 | |||
| 21 | |||
| 22 | 1 | public function getCMSFields() |
|
| 38 | } |
||
| 39 | |||
| 43 |
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.