Sunnysideup\EcommerceProductVariation\Model\TypesAndValues\ProductAttributeValue
Synopsis
class ProductAttributeValue
extends DataObject
implements
EditableEcommerceObject
{
- // members
- private static array $api_access = ;
- private static string $table_name = 'ProductAttributeValue';
- private static array $db = ;
- private static array $has_one = ;
- private static array $belongs_many_many = ;
- private static array $summary_fields = ;
- private static array $searchable_fields = ;
- private static array $casting = ;
- private static array $indexes = ;
- private static string $default_sort = '"TypeID" ASC, "Sort" ASC';
- private static string $singular_name = 'Variation Attribute Value';
- private static string $plural_name = 'Variation Attribute Values';
- // methods
- public static ProductAttributeType find_or_make()
- public void i18n_singular_name()
- public void i18n_plural_name()
- public void canDelete()
- public void getCMSFields()
- public string CMSEditLink()
- public string ValueForDropdown()
- public void getValueForDropdown()
- public string ValueForTable()
- public void getValueForTable()
- public string Title()
- public void getTitle()
- public string FullTitle()
- public void getFullTitle()
- public void onBeforeDelete()
- public void onBeforeWrite()
- public void onAfterWrite()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Implements
- Sunnysideup\Ecommerce\Interfaces\EditableEcommerceObject
Members
private
-
$api_access
Standard SS variable. - $belongs_many_many
- $casting
- $db
- $default_sort
- $has_one
- $indexes
- $plural_name
- $searchable_fields
- $singular_name
- $summary_fields
-
$table_name
### @@@@ START REPLACEMENT @@@@ ### OLD: private static $db (case sensitive) NEW: private static $db (COMPLEX) EXP: Check that is class indeed extends DataObject and that it is not a data-extension! ### @@@@ STOP REPLACEMENT @@@@ ###
Methods
public
- CMSEditLink() — link to edit the record
- FullTitle() — casted variable returns the value for the variations table
- Title() — casted variable returns the value for the variations table
- ValueForDropdown() — casted variable returns the value for the option in the select dropdown box.
- ValueForTable() — casted variable returns the value for the variations table
- canDelete()
- find_or_make() — finds or makes a ProductAttributeType, based on the lower case Name.
- getCMSFields()
- getFullTitle()
- getTitle()
- getValueForDropdown()
- getValueForTable()
- i18n_plural_name()
- i18n_singular_name()
- onAfterWrite() — Event handler called after writing to the database.
- onBeforeDelete()
- onBeforeWrite()