You are here

public function UcAjaxCart::getCartContents in Ubercart AJAX Cart 6.2

Same name and namespace in other branches
  1. 7.2 uc_ajax_cart.extender.inc \UcAjaxCart::getCartContents()
2 calls to UcAjaxCart::getCartContents()
UcAjaxCart::hasItemInCart in ./uc_ajax_cart.php
UcAjaxCart::removeItemFromCart in ./uc_ajax_cart.php

File

./uc_ajax_cart.php, line 5

Class

UcAjaxCart

Code

public function getCartContents($withoutCache = false) {
  if ($withoutCache === false) {
    $action = null;
  }
  else {
    $action = 'rebuild';
  }
  return uc_cart_get_contents(uc_cart_get_id(), $action);
}