You are here

public function UcAjaxCart::getCartContents in Ubercart AJAX Cart 7.2

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

File

./uc_ajax_cart.extender.inc, line 4

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);
}