SilverCommerce\CustomisableProducts\ProductCustomisation
Synopsis
class ProductCustomisation
extends DataObject
{
- // constants
- const DROPDOWN_FIELD = 'Dropdown';
- const RADIO_FIELD = 'Radio';
- const CHECKBOX_FIELD = 'Checkboxes';
- const TEXT_FIELD = 'TextEntry';
- // members
- private static string $table_name = "ProductCustomisation";
- private static array $db = ;
- private static array $has_one = ;
- private static array $has_many = ;
- private static array $summary_fields = ;
- private static array $default_sort = ;
- // methods
- public void getCMSFields()
- public SSList DefaultOptions()
- public FormField Field()
- public void onBeforeDelete()
- public void canView()
- public void canCreate()
- public void canEdit()
- public void canDelete()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Constants
Name | Value |
---|---|
DROPDOWN_FIELD | 'Dropdown' |
RADIO_FIELD | 'Radio' |
CHECKBOX_FIELD | 'Checkboxes' |
TEXT_FIELD | 'TextEntry' |
Members
private
- $db
- $default_sort
- $has_many
- $has_one
- $summary_fields
- $table_name
—
string
Table to create in DB
Methods
public
- DefaultOptions() — Get the default options for this customisation
- Field() — Method that turns this object into a field type, to be loaded into a form
- canCreate()
- canDelete()
- canEdit()
- canView()
- getCMSFields()
- onBeforeDelete()