swipestripe
[ class tree: swipestripe ] [ index: swipestripe ] [ all elements ]

Class: AddToCartFormValidator

Source Location: /code/form/AddToCartFormValidator.php

Class Overview

RequiredFields
   |
   --AddToCartFormValidator

Validator for AddToCartForm which validates that the product Variation is correct for the Product being added to the cart.


Author(s):

Version:

  • 1.0

Copyright:

  • Copyright (c) 2011, Frank Mullenger

Methods



Class Details

[line 12]
Validator for AddToCartForm which validates that the product Variation is correct for the Product being added to the cart.



Tags:

author:  Frank Mullenger <frankmullenger@gmail.com>
version:  1.0
copyright:  Copyright (c) 2011, Frank Mullenger


[ Top ]


Class Methods


method getForm [line 98]

Form getForm( )

Helper so that form fields can access the form and current form data



Tags:

return:  The current form
access:  public


[ Top ]

method php [line 20]

Boolean php( Array $data)

Check that current product variation is valid



Tags:

return:  Returns TRUE if the submitted data is valid, otherwise FALSE.


Parameters:

Array   $data   Submitted data

[ Top ]


Documentation generated on Thu, 08 Mar 2012 16:47:24 +1300 by phpDocumentor 1.4.4