APP_Draft_Order
Represents an order that has not been written to the database yet.
Package
Description Description
All methods used this class will not write to the database
Methods Methods
- __construct — Records the current IP Address of the user
- activate — Overrides parent method to remove ability for new order to be spawned from draft order activations and logging.
- add_item — Adds an item to the order.
- clear_gateway — See APP_Order::clear_gateway()
- clear_recurring_period — Stops the order from recurring upon completion
- complete — Overrides parent method to remove logging.
- failed — Overrides parent method to remove logging.
- get_recurring_period — Returns the order's recurring period
- get_recurring_period_type — Returns the order's recurring period type
- is_modified
- is_recurring — Returns true if the order recurrs
- pending — Overrides parent method to remove logging.
- refresh_total — See APP_Order::refresh_total()
- remove_item — Removes an item or items from the order. Removes all items that match the criteria
- set_description
- set_gateway — See APP_Order::set_gateway() for more information
- set_recurring_period — Sets up the order to recur upon completion
- set_status — See APP_Order::set_status()
- upgrade — Upgrrades a Draft Order to a Main Order