1 | <?php |
||
3 | class GalleryPage extends Page |
||
|
|||
4 | { |
||
5 | /** |
||
6 | * @var string |
||
7 | */ |
||
8 | private static $icon = 'flex-images-gallery/images/icons/gallery.png'; |
||
9 | |||
10 | /** |
||
11 | * @var string |
||
12 | */ |
||
13 | private static $description = 'Gallery page'; |
||
14 | |||
15 | /** |
||
16 | * @var array |
||
17 | */ |
||
18 | private static $db = array( |
||
19 | 'Height' => 'int', |
||
20 | ); |
||
21 | |||
22 | /** |
||
23 | * @var array |
||
24 | */ |
||
25 | private static $has_many = array( |
||
26 | 'GalleryBlocks' => 'ContentBlock_Gallery', |
||
27 | ); |
||
28 | |||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | private static $many_many = array( |
||
33 | 'Images' => 'Image', |
||
34 | ); |
||
35 | |||
36 | /** |
||
37 | * @return FieldList |
||
38 | */ |
||
39 | public function getCMSFields() |
||
64 | } |
||
65 | |||
90 |
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.