| 1 | <?php |
||
| 5 | class StaffFolder extends Page implements RenderableAsPortlet |
||
|
|
|||
| 6 | { |
||
| 7 | public static $db = array( |
||
| 8 | 'LinkToIndividualStaffPages' => 'Boolean', |
||
| 9 | ); |
||
| 10 | public static $has_one = array( |
||
| 11 | 'MainImage' => 'Image', |
||
| 12 | ); |
||
| 13 | |||
| 14 | private static $icon = 'weboftalent-staff/icons/employees.png'; |
||
| 15 | |||
| 16 | public static $allowed_children = array('Staff'); |
||
| 17 | |||
| 18 | public function getCMSFields() |
||
| 26 | |||
| 27 | public function getPortletTitle() |
||
| 31 | |||
| 32 | // FIXME - make this more efficient |
||
| 33 | public function getPortletImage() |
||
| 37 | |||
| 38 | public function getPortletCaption() |
||
| 42 | } |
||
| 43 | |||
| 64 |
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.