SharedShoppingCartDeleter

Implements \SharedShoppingCartDeleterInterface

Class SharedShoppingCartDeleter

category

System

package

SharedShoppingCart

Methods

Constructor

__construct(\CI_DB_query_builder $db) 

Arguments

$db

\CI_DB_query_builder

Deletes all shared shopping carts by a given customer ID.

deleteShoppingCartsByCustomerId(\IdType $customerId) 

Arguments

$customerId

\IdType

Deletes all shared shopping carts that are expired

deleteShoppingCartsOlderThan(\DateTime $expirationDate) 
override

Arguments

$expirationDate

\DateTime

All shared shopping carts older than that date are expired

Properties

db

db : \CI_DB_query_builder
var

Type(s)

\CI_DB_query_builder