\ShoppingCart_Controller

ShoppingCart_Controller

Handles the modification of a shopping cart via http requests.
Provides links for making these modifications.

Synopsis

class ShoppingCart_Controller extends Controller implements Flushable {
}

Hierarchy

Extends

  • Controller

Implements

  • Flushable

Tasks

Line Task
16+ supply links for adding, removing, and clearing cart items
16+ link for removing modifier(s)
506+ : add non-ajax version of this request.
617+ : check that comment description actually matches what it does

Members

private

  • $allowed_actions
  • $url_handlers
    Default URL handlers - (Action)/(ID)/(OtherID)

protected

  • $cartShoppingCart
  • $methodsRequiringSecurityIDArray
    We need to only use the Security ID on a few actions, these are listed here.

Methods

protected

  • buyable() — Gets a buyable object based on URL actions
  • parameters() — Gets the request parameters
  • params_to_get_string() — Helper function used by link functions Creates the appropriate url-encoded string parameters for links from array
  • quantity() — Gets the requested quantity

public