| 1 | <?php |
||
| 8 | class ContentBlock_Accordion extends ContentBlock |
||
|
|
|||
| 9 | { |
||
| 10 | |||
| 11 | private static $db = [ |
||
| 12 | 'AccordionTitle' => 'Text', |
||
| 13 | 'AccordionSummary' => 'Text', |
||
| 14 | 'AccordionContent' => 'HTMLText', |
||
| 15 | ]; |
||
| 16 | |||
| 17 | public function getCMSFields() |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Gets the block type for CMS display |
||
| 44 | * |
||
| 45 | * @return string |
||
| 46 | */ |
||
| 47 | public function getBlockType() |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Gets the configured classes for a column |
||
| 54 | * |
||
| 55 | * @return string |
||
| 56 | */ |
||
| 57 | public function AccordionClasses() |
||
| 65 | |||
| 66 | } |
||
| 67 |
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.