\CartForm_QuantityField
Quantity field for displaying each {@link Item} in an {@link Order} on the {@link CartPage}.
Synopsis
class CartForm_QuantityField
extends TextField
{
- // methods
- public void __construct()
- public void FieldHolder()
- public Item Item()
- public void setItem()
- public Boolean validate()
- public void Type()
Hierarchy
Extends
- TextField
Members
protected
-
$item
Current {@link Item} represented by this field. - $template
—
String
Template for rendering the field
Methods
public
- __construct() — Construct the field and set the current {@link Item} that this field represents.
- FieldHolder() — Render the field with the appropriate template.
- Item() — Retrieve the current {@link Item} this field represents. Used in the template.
- Type()
- setItem() — Set the current {@link Item} this field represents
- validate() — Validate this field, check that the current {@link Item} is in the current {@Link Order} and is valid for adding to the cart.