\ProductMultiCurrency
Stupid class name because no namespacing in this SS version yet
Synopsis
class ProductMultiCurrency
extends DataObject
{
- // members
- private static string $singular_name = "Currency";
- private static string $plural_name = "Currencies";
- private static array $db = ;
- private static array $has_one = ;
- private static array $summary_fields = ;
- // methods
- public void validate()
- public FieldList getCMSFields()
- protected void onBeforeWrite()
- public static ProductMultiCurrency defaultCurrencyObject()
- public string getCurrency()
- protected static ProductMultiCurrency createDefaultCurrencyObject()
- public void requireDefaultRecords()
Hierarchy
Extends
- DataObject
Members
private
- $db
—
array
List of database fields. {@link DataObject::$db} - $has_one
—
array
List of one-to-one relationships. {@link DataObject::$has_one} - $plural_name
- $singular_name
- $summary_fields — array
Methods
protected
- createDefaultCurrencyObject() — Create ProductMultiCurrency with Shop defauly currency
- onBeforeWrite()
public
- defaultCurrencyObject() — Gets ProductMultiCurrency with Shops default currency. If none found, create one.
- getCMSFields() — Returns a FieldList with which to create the main editing form. {@link DataObject::getCMSFields()}
- getCurrency()
- requireDefaultRecords()
- validate()