\CartForm
Form to display the {@link Order} contents on the {@link CartPage}.
- Author: Frank Mullenger <frankmullenger@gmail.com>
- Copyright: Copyright (c) 2011, Frank Mullenger
Synopsis
class CartForm
extends Form
{
- // members
- public Order $order;
- // methods
- public void __construct()
- public void setupFormErrors()
- public void createFields()
- public void createActions()
- public void createValidator()
- public void updateCart()
- public void goToCheckout()
- private void saveCart()
- public void Cart()
Hierarchy
Extends
- Form
Members
public
- $order
—
Order
The current {@link Order} (cart).
Methods
private
- saveCart() — Save the cart, update the order item quantities and the order total.
public
- __construct() — Construct the form, set the current order and the template to be used for rendering.
- Cart()
- createActions()
- createFields()
- createValidator()
- goToCheckout() — Update the current cart quantities and redirect to checkout.
- setupFormErrors() — Set up current form errors in session to the current form if appropriate.
- updateCart() — Update the current cart quantities then redirect back to the cart page.