1 | <?php |
||
3 | class DMSDocumentTaxonomyExtension extends DataExtension |
||
|
|||
4 | { |
||
5 | private static $many_many = array( |
||
6 | 'Tags' => 'TaxonomyTerm' |
||
7 | ); |
||
8 | |||
9 | /** |
||
10 | * Push an autocomplete dropdown for the available tags in documents |
||
11 | * |
||
12 | * @param FieldList $fields |
||
13 | */ |
||
14 | public function updateCMSFields(FieldList $fields) |
||
27 | |||
28 | /** |
||
29 | * Return an array of all the available tags that a document can use. Will return a list containing a taxonomy |
||
30 | * term's entire hierarchy, e.g. "Photo > Attribute > Density > High" |
||
31 | * |
||
32 | * @return array |
||
33 | */ |
||
34 | public function getAllTagsMap() |
||
55 | } |
||
56 |
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.