\SeedTaxonomyTermExtension
Synopsis
class SeedTaxonomyTermExtension
extends DataExtension
{
- // members
- private static boolean $api_access = true;
- private static array $belongs_many_many = ;
- // methods
- public void updateCMSFields()
- public void createReverseTagField()
- public string getTreeTitle()
- public boolean getCanBeTagged()
- public static ListboxField create_field()
- public static ListboxField get_source()
Hierarchy
Extends
- DataExtension
Members
private
- $api_access
- $belongs_many_many
Methods
public
- createReverseTagField() — Setup the appropriate field to manage tagging for a belongs_many_many relationship.
- create_field() — Get field to add/remove taxonomies applied to the data object and sets up 'quickaddnew'
- getCanBeTagged() — Default behaviour of silverstripe-seed to only allow tagging of taxonomies with parents. See 'get_source'.
- getTreeTitle() — Set title to show in a default TreeDropdownField.
- get_source() — Get the map of taxonomies for dropdown fields / etc NOTE: In its own function as 'useAddNew' requires the source be a callback function.
- updateCMSFields()