Version: current

# Class Cart

Реализация корзины

  Object
  Cart

Package: cart
Author: inxo
Located at cart/code/Cart.php

## Methods summary

`public static` | # `add_new_item( `OrderItem` $item )`
`public static` | # `add_item( mixed $itemIndex, mixed $quantity = 1 )`
`public static` | # `remove_item( mixed $itemIndex, mixed $count = 1 )`
`public static` | # `clear( )`
`public static` | # `remove_all_item( mixed $itemIndex )`
`public static` | # `set_quantity_item( mixed $itemIndex, mixed $quantity )`
`public static` | # `get_quantity_item( mixed $itemIndex )`
`public static` | # `get_items( )`
`public static` | # `has_items( )`
`public static` | # `in_cart( mixed $itemIndex )`
`public static` | # `current_order( )`
`public static` | # `get_info( mixed $name = null )`
`public static` | # `set_info( mixed $name, mixed $value )`
`public static` | # `get_cached_cart( )`
`public static` | # `update_cart_from_cache( )`
`public static` | # `get_cache( )`
`public static` | # `get_cached_data( mixed $key )`
`public static` | # `set_cached_data( mixed $key, mixed $data )`
`public static` | # `clean_cache( mixed $key )`

### Methods inherited from Object

`__call()`, `__construct()`, `__toString()`, `__wakeup()`, `addMethodsFrom()`, `addStaticVars()`, `addWrapperMethod()`, `add_extension()`, `add_static_var()`, `allMethodNames()`, `cacheToFile()`, `cacheToFileWithArgs()`, `clearCache()`, `combined_static()`, `create()`, `createMethod()`, `create_from_string()`, `defineMethods()`, `exists()`, `extInstance()`, `extend()`, `getCustomClass()`, `getExtensionInstance()`, `getExtensionInstances()`, `get_extensions()`, `get_static()`, `hasExtension()`, `hasMethod()`, `has_extension()`, `invokeWithExtensions()`, `is_a()`, `loadCache()`, `parentClass()`, `parse_class_spec()`, `remove_extension()`, `sanitiseCachename()`, `saveCache()`, `set_stat()`, `set_static()`, `set_uninherited()`, `stat()`, `strong_create()`, `uninherited()`, `uninherited_static()`, `useCustomClass()`

### Magic methods summary

## Properties summary

`public static boolean` | $cache | #

### Properties inherited from Object

`$class`, `$extension_instances`, `$extensions`

[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the Silverstripe Forums to ask development related questions. -