Properties

$id_shop

$id_shop : 

Type

$name

$name : 

Type

$passwd

$passwd : 

Type

$http_referer_regexp

$http_referer_regexp : 

Type

$http_referer_like

$http_referer_like : 

Type

$request_uri_regexp

$request_uri_regexp : 

Type

$request_uri_like

$request_uri_like : 

Type

$http_referer_regexp_not

$http_referer_regexp_not : 

Type

$http_referer_like_not

$http_referer_like_not : 

Type

$request_uri_regexp_not

$request_uri_regexp_not : 

Type

$request_uri_like_not

$request_uri_like_not : 

Type

$base_fee

$base_fee : 

Type

$percent_fee

$percent_fee : 

Type

$click_fee

$click_fee : 

Type

$date_add

$date_add : 

Type

$definition

$definition : 

Type

$_join

$_join : 

Type

Methods

add()

add(  $autodate = true,   $null_values = false) 

Parameters

$autodate
$null_values

cacheNewSource()

cacheNewSource(  $id_connections_source) 

Parameters

$id_connections_source

getReferrers()

getReferrers(integer  $id_customer) 

Get list of referrers connections of a customer

Parameters

integer $id_customer

getStatsVisits()

getStatsVisits(integer  $id_product, integer  $employee) 

Get some statistics on visitors connection for current referrer

Parameters

integer $id_product
integer $employee

getRegistrations()

getRegistrations(integer  $id_product, integer  $employee) 

Get some statistics on customers registrations for current referrer

Parameters

integer $id_product
integer $employee

getStatsSales()

getStatsSales(integer  $id_product, integer  $employee) 

Get some statistics on orders for current referrer

Parameters

integer $id_product
integer $employee

refreshCache()

refreshCache(array  $referrers = null, integer  $employee = null) : true

Refresh cache data of referrer statistics in referrer_shop table

Parameters

array $referrers
integer $employee

Returns

true

refreshIndex()

refreshIndex(array  $referrers = null) 

Cache liaison between connections_source data and referrers data

Parameters

array $referrers

getAjaxProduct()

getAjaxProduct(  $id_referrer,   $id_product,   $employee = null) 

Parameters

$id_referrer
$id_product
$employee