\OrderItem
OrderItem is a physical component of an order, that describes a product
- Author: morven
Synopsis
class OrderItem
extends DataObject
{
- // members
- private static array $db = ;
- private static array $has_one = ;
- private static array $summary_fields = ;
- private static array $casting = ;
- // methods
- public Float Tax()
- public ArrayList Customisations()
- public String CustomisationList()
- public void CustomisationHTML()
- public DataObject Match()
- public void getCMSFields()
- public Boolean canView()
- public Boolean canCreate()
- public Boolean canEdit()
- public Boolean canDelete()
Hierarchy
Extends
- DataObject
Members
private
- $casting
- $db
- $has_one
- $summary_fields
Methods
public
- CustomisationHTML() — Unserialise the list of customisations and rendering into a basic HTML string
- CustomisationList() — Provide a string of customisations seperated by a comma
- Customisations() — Unserialise the list of customisations
- Match() — Match this item to another object in the Database, by the provided details.
- Tax() — Get the amount of tax for a single unit of this item
- canCreate() — Anyone can create an order item
- canDelete() — No one can delete items once they are created
- canEdit() — No one can edit items once they are created
- canView() — Only order creators or users with VIEW admin rights can view
- getCMSFields()