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

Class: CartPage_Controller

Source Location: /code/customer/CartPage.php

Class Overview

Page_Controller
   |
   --CartPage_Controller

Display the cart page, with cart form. Handle cart form actions.


Author(s):

Version:

  • 1.0

Copyright:

  • Copyright (c) 2011, Frank Mullenger

Methods



Class Details

[line 101]
Display the cart page, with cart form. Handle cart form actions.



Tags:

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


[ Top ]


Class Methods


method CartForm [line 126]

CartForm CartForm( )

Form including quantities for items for displaying on the cart page.



Tags:

return:  A new cart form


[ Top ]

method goToCheckout [line 189]

void goToCheckout( Array $data, Form $form)

Update the current cart quantities and redirect to checkout.



Parameters:

Array   $data   Data submitted from the form via POST
Form   $form   Form that data was submitted from

[ Top ]

method index [line 108]

Array index( )

Include some CSS for the cart page.



Tags:

return:  Contents for page rendering


[ Top ]

method removeItem [line 175]

void removeItem( Array $data, Form $form)

Remove an item from the cart



Parameters:

Array   $data   Data submitted from the form via POST
Form   $form   Form that data was submitted from

[ Top ]

method updateCart [line 163]

void updateCart( Array $data, Form $form)

Update the current cart quantities then redirect back to the cart page.



Parameters:

Array   $data   Data submitted from the form via POST
Form   $form   Form that data was submitted from

[ Top ]


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