\CompareProductCore

Summary

Methods
Properties
Constants
getCompareProducts()
addCompareProduct()
removeCompareProduct()
getNumberProducts()
cleanCompareProducts()
getIdCompareByIdCustomer()
$id_compare
$id_customer
$date_add
$date_upd
$definition
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$id_compare

$id_compare : 

Type

$id_customer

$id_customer : 

Type

$date_add

$date_add : 

Type

$date_upd

$date_upd : 

Type

$definition

$definition : 

Type

Methods

getCompareProducts()

getCompareProducts(  $id_compare) : array

Get all compare products of the customer

Parameters

$id_compare

Returns

array

addCompareProduct()

addCompareProduct(  $id_compare,   $id_product) : boolean

Add a compare product for the customer

Parameters

$id_compare
$id_product

Returns

boolean

removeCompareProduct()

removeCompareProduct(integer  $id_compare, integer  $id_product) : boolean

Remove a compare product for the customer

Parameters

integer $id_compare
integer $id_product

Returns

boolean

getNumberProducts()

getNumberProducts(integer  $id_compare) : integer

Get the number of compare products of the customer

Parameters

integer $id_compare

Returns

integer

cleanCompareProducts()

cleanCompareProducts(string  $period = 'week') : void

Clean entries which are older than the period

Parameters

string $period

getIdCompareByIdCustomer()

getIdCompareByIdCustomer(integer  $id_customer) : integer

Get the id_compare by id_customer

Parameters

integer $id_customer

Returns

integer —

$id_compare