Properties

$id

$id : 

Type

$id_supplier

$id_supplier : integer

Type

integer — supplier ID

$name

$name : string

Type

string — Name

$description

$description : string

Type

string — A short description for the discount

$date_add

$date_add : string

Type

string — Object creation date

$date_upd

$date_upd : string

Type

string — Object last modification date

$link_rewrite

$link_rewrite : string

Type

string — Friendly URL

$meta_title

$meta_title : string

Type

string — Meta title

$meta_keywords

$meta_keywords : string

Type

string — Meta keywords

$meta_description

$meta_description : string

Type

string — Meta description

$active

$active : boolean

Type

boolean — active

$definition

$definition : 

Type

$webserviceParameters

$webserviceParameters : 

Type

$cache_name

$cache_name : 

Return name from id

Type

Methods

__construct()

__construct(  $id = null,   $id_lang = null) 

Parameters

$id
$id_lang

getLink()

getLink() 

getSuppliers()

getSuppliers(  $get_nb_products = false,   $id_lang,   $active = true,   $p = false,   $n = false,   $all_groups = false) : array

Return suppliers

Parameters

$get_nb_products
$id_lang
$active
$p
$n
$all_groups

Returns

array —

Suppliers

getNameById()

getNameById(  $id_supplier) 

Parameters

$id_supplier

getIdByName()

getIdByName(  $name) 

Parameters

$name

getProducts()

getProducts(  $id_supplier,   $id_lang,   $p,   $n,   $order_by = null,   $order_way = null,   $get_total = false,   $active = true,   $active_category = true) 

Parameters

$id_supplier
$id_lang
$p
$n
$order_by
$order_way
$get_total
$active
$active_category

getProductsLite()

getProductsLite(  $id_lang) 

Parameters

$id_lang

supplierExists()

supplierExists(  $id_supplier) 

Parameters

$id_supplier

delete()

delete() 

getProductInformationsBySupplier()

getProductInformationsBySupplier(integer  $id_supplier, integer  $id_product, integer  $id_product_attribute) : array

Gets product informations

Parameters

integer $id_supplier
integer $id_product
integer $id_product_attribute

Returns

array