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

Class: CartControllerExtension

Source Location: /code/customer/CartControllerExtension.php

Class Overview

Extension
   |
   --CartControllerExtension

Extends Page_Controller adding some functions to retrieve the current cart, and link to the cart.


Author(s):

Version:

  • 1.0

Copyright:

  • Copyright (c) 2011, Frank Mullenger

Methods



Class Details

[line 12]
Extends Page_Controller adding some functions to retrieve the current cart, and link to the cart.



Tags:

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


[ Top ]


Class Methods


static method get_current_order [line 57]

static Order get_current_order( )

Get the current order from the session, if order does not exist create a new one.



Tags:

return:  The current order (cart)


[ Top ]

method Cart [line 19]

Order Cart( )

Retrieve the current cart for display in the template.



Tags:

return:  The current order (cart)


[ Top ]

method CartLink [line 34]

String CartLink( [String $type = 'Cart'])

Convenience method to return links to cart related page.



Tags:

return:  The URL to the particular page


Parameters:

String   $type   The type of cart page a link is needed for

[ Top ]

method onBeforeInit [line 82]

void onBeforeInit( )

Updates timestamp LastActive on the order, called on every page request.

This is for a stock level solution which is not currently implemented.




[ Top ]


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