SilverShop\Model\Variation\AttributeType
Producte Attribute Type Types of product attributes.
eg: color, size, length
Synopsis
class AttributeType
extends DataObject
{
- // members
- private static array $db = ;
- private static array $has_many = ;
- private static array $belongs_many_many = ;
- private static array $summary_fields = ;
- private static array $indexes = ;
- private static string $default_sort = 'ID ASC';
- private static string $singular_name = 'Attribute';
- private static string $plural_name = 'Attributes';
- private static string $table_name = 'SilverShop_AttributeType';
- // methods
- public static void find_or_make()
- public void getCMSFields()
- public void addValues()
- public ArrayList convertArrayToValues()
- public DropdownField getDropDownField()
- public void onBeforeWrite()
- public void canDelete()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Tasks
Line | Task |
---|---|
175 | prevent deleting if has been used |
Members
private
- $belongs_many_many
- $db
- $default_sort
- $has_many
- $indexes
- $plural_name
- $singular_name
- $summary_fields
- $table_name
Methods
public
- addValues()
- canDelete()
- convertArrayToValues() — Finds or creates values for this type.
- find_or_make()
- getCMSFields()
- getDropDownField() — Returns a dropdown field for the user to select a variant.
- onBeforeWrite()