1 | <?php |
||
9 | class BlogSharedCategoriesExtension extends DataExtension |
||
|
|||
10 | { |
||
11 | public function updateCMSFields(FieldList $fields) |
||
38 | |||
39 | /** |
||
40 | * |
||
41 | * @return DataList |
||
42 | */ |
||
43 | public function UsedCategories() |
||
56 | |||
57 | /** |
||
58 | * overrules has_many method |
||
59 | * to return ALL categories |
||
60 | * |
||
61 | * @return DataList |
||
62 | */ |
||
63 | public function UsedTags() |
||
73 | |||
74 | |||
75 | /** |
||
76 | * overrules has_many method |
||
77 | * to return ALL categories |
||
78 | * |
||
79 | * @return DataList |
||
80 | */ |
||
81 | public function Tags() |
||
85 | |||
86 | /** |
||
87 | * overrules has_many method |
||
88 | * to return ALL categories |
||
89 | * |
||
90 | * @return DataList |
||
91 | */ |
||
92 | public function Categories() |
||
96 | |||
97 | /** |
||
98 | * overrules has_many method |
||
99 | * to return ALL categories |
||
100 | * |
||
101 | * @return DataList |
||
102 | */ |
||
103 | public function getTags() |
||
107 | |||
108 | /** |
||
109 | * overrules has_many method |
||
110 | * to return ALL categories |
||
111 | * |
||
112 | * @return DataList |
||
113 | */ |
||
114 | public function getCategories() |
||
118 | } |
||
119 |
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.