SharedShoppingCartWriter
in package
implements
SharedShoppingCartWriterInterface
Class SharedShoppingCartWriter
Tags
Interfaces, Classes and Traits
- SharedShoppingCartWriterInterface
- Interface SharedShoppingCartWriterInterface
Table of Contents
- $db : CI_DB_query_builder
- __construct() : mixed
- SharedShoppingCartWriter constructor.
- storeShoppingCart() : $this|SharedShoppingCartWriter
- Stores a shopping cart.
Properties
$db
protected
CI_DB_query_builder
$db
Methods
__construct()
SharedShoppingCartWriter constructor.
public
__construct(CI_DB_query_builder $db) : mixed
Parameters
- $db : CI_DB_query_builder
Return values
mixed —storeShoppingCart()
Stores a shopping cart.
public
storeShoppingCart(StringType $shoppingCartHash, StringType $jsonShoppingCart[, IdType|null $userId = null ]) : $this|SharedShoppingCartWriter
Parameters
- $shoppingCartHash : StringType
-
Hash of the shopping cart
- $jsonShoppingCart : StringType
-
JSON representation of the shopping cart
- $userId : IdType|null = null
-
Id of the user sharing the shopping cart
Return values
$this|SharedShoppingCartWriter —Same instance for chained method calls.