Properties

$id

$id : 

Type

$id_manufacturer

$id_manufacturer : integer

Type

integer — manufacturer ID //FIXME is it really usefull...?

$name

$name : string

Type

string — Name

$description

$description : string

Type

string — A description

$short_description

$short_description : string

Type

string — A short description

$id_address

$id_address : integer

Type

integer — Address

$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

$cacheName

$cacheName : 

Return name from id

Type

Methods

__construct()

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

Parameters

$id
$id_lang

delete()

delete() 

deleteSelection()

deleteSelection(  $selection) 

Delete several objects from database

return boolean Deletion result

Parameters

$selection

getManufacturers()

getManufacturers(boolean  $get_nb_products = false, integer  $id_lang, boolean  $active = true, integer  $p = false, integer  $n = false, boolean  $all_group = false,   $group_by = false) : array

Return manufacturers

Parameters

boolean $get_nb_products

[optional] return products numbers for each

integer $id_lang
boolean $active
integer $p
integer $n
boolean $all_group
$group_by

Returns

array —

Manufacturers

getNameById()

getNameById(  $id_manufacturer) 

Parameters

$id_manufacturer

getIdByName()

getIdByName(  $name) 

Parameters

$name

getLink()

getLink() 

getProducts()

getProducts(  $id_manufacturer,   $id_lang,   $p,   $n,   $order_by = null,   $order_way = null,   $get_total = false,   $active = true,   $active_category = true, \Context  $context = null) 

Parameters

$id_manufacturer
$id_lang
$p
$n
$order_by
$order_way
$get_total
$active
$active_category
\Context $context

getProductsLite()

getProductsLite(  $id_lang) 

Parameters

$id_lang

manufacturerExists()

manufacturerExists(  $id_manufacturer) 

Parameters

$id_manufacturer

getAddresses()

getAddresses(  $id_lang) 

Parameters

$id_lang

getWsAddresses()

getWsAddresses() 

setWsAddresses()

setWsAddresses(  $id_addresses) 

Parameters

$id_addresses

getManufacturerAddress()

getManufacturerAddress()