\OrderForm_ItemField
Represent each {@link Item} in the {@link Order} on the {@link OrderForm}.
Synopsis
class OrderForm_ItemField
extends FormField
{
- // methods
- public void __construct()
- public String FieldHolder()
- public Item Item()
- public void setItem()
- public Boolean validate()
Hierarchy
Extends
- FormField
Members
protected
Methods
public
- __construct() — Construct the form field and set the {@link Item} it represents.
- FieldHolder() — Render the form field with the correct template.
- Item() — Retrieve the {@link Item} this field represents.
- setItem() — Set the {@link Item} this field represents.
- validate() — Validate this form field, make sure the {@link Item} exists, is in the current {@link Order} and the item is valid for adding to the cart.