\ComplexPriceObject
This object is attached to any Buyable using the ComplexPriceBuyableDecorator
Synopsis
class ComplexPriceObject
extends DataObject
{
- // members
- private static array $db = ;
- private static array $many_many = ;
- private static array $searchable_fields = ;
- private static array $field_labels = ;
- private static array $summary_fields = ;
- private static array $casting = ;
- private static string $singular_name = "Price";
- private static string $plural_name = "Prices";
- private static string $default_sort = "\"Until\" DESC";
- // methods
- public void getCMSFields()
- public void Buyable()
- public void getBuyable()
- public void CalculatedPrice()
- public void getCalculatedPrice()
- public void AppliesTo()
- public void getAppliesTo()
- public void NoLongerValidNice()
- public void getNoLongerValidNice()
- public void validate()
- public void Name()
- public void getName()
- public void onBeforeWrite()
Hierarchy
Extends
- DataObject
Members
private
- $casting
- $db
- $default_sort
- $field_labels
- $many_many
- $plural_name
- $searchable_fields
- $singular_name
- $summary_fields
Methods
public
- AppliesTo()
- Buyable()
- CalculatedPrice() — works out any price reductions
- Name()
- NoLongerValidNice()
- getAppliesTo()
- getBuyable()
- getCMSFields()
- getCalculatedPrice()
- getName()
- getNoLongerValidNice()
- onBeforeWrite()
- validate()