1 | <?php |
||
8 | class ContentBlock_TileSection extends ContentBlock |
||
|
|||
9 | { |
||
10 | private static $db = [ |
||
11 | 'TilesPerRow' => 'Enum("One, Two, Three")', |
||
12 | 'TileTemplate' => 'Text' |
||
13 | ]; |
||
14 | |||
15 | private static $has_many = [ |
||
16 | 'ContentTiles' => 'TileSection_ContentTile', |
||
17 | ]; |
||
18 | |||
19 | public function getCMSFields() |
||
56 | |||
57 | /** |
||
58 | * Gets available templates from the static configuration |
||
59 | * |
||
60 | * @return array |
||
61 | */ |
||
62 | public function getAvailableTemplates() |
||
70 | |||
71 | |||
72 | /** |
||
73 | * Gets the block type for CMS display |
||
74 | * |
||
75 | * @return string |
||
76 | */ |
||
77 | public function getBlockType() |
||
81 | } |
||
82 |
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.