\Modification
Modification for the {@link Order}, saves data that is set by {@link Modifier}s e.g: shipping, tax, vouchers etc. Instead of linking to a {@link Modifier} it takes the Amount that the modifier will ammend the {@link Order} total by and the Description of the Modifier and saves that - denormalising the data - so that Modifiers can be deleted without losing any information from the Order.
- Author: Frank Mullenger <frankmullenger@gmail.com>
- Copyright: Copyright (c) 2011, Frank Mullenger
Synopsis
class Modification
extends DataObject
{
- // members
- private static Array $db = ;
- private static Array $has_one = ;
- private static string $default_sort = 'SortOrder ASC';
- // methods
- public static void get_all()
- public void Amount()
- public Price Price()
- public void add()
- public void getFormFields()
Hierarchy
Extends
- DataObject
Tasks
Line | Task |
---|---|
66 | Multi currency |
Members
private
Methods
public
- Amount()
- Price() — Display price, can decorate for multiple currency etc.
- add()
- getFormFields()
- get_all()