\FeatureValueCore

Summary

Methods
Properties
Constants
getFeatureValues()
getFeatureValuesWithLang()
getFeatureValueLang()
selectLang()
addFeatureValueImport()
add()
delete()
update()
$id_feature
$value
$custom
$definition
No constants found
No protected methods found
$webserviceParameters
N/A
No private methods found
No private properties found
N/A

Properties

$id_feature

$id_feature : integer

Type

integer — Group id which attribute belongs

$value

$value : string

Type

string — Name

$custom

$custom : boolean

Type

boolean — Custom

$definition

$definition : 

Type

$webserviceParameters

$webserviceParameters : 

Type

Methods

getFeatureValues()

getFeatureValues(boolean  $id_feature) : array

Get all values for a given feature

Parameters

boolean $id_feature

Feature id

Returns

array —

Array with feature's values

getFeatureValuesWithLang()

getFeatureValuesWithLang(integer  $id_lang, boolean  $id_feature,   $custom = false) : array

Get all values for a given feature and language

Parameters

integer $id_lang

Language id

boolean $id_feature

Feature id

$custom

Returns

array —

Array with feature's values

getFeatureValueLang()

getFeatureValueLang(boolean  $id_feature_value) : array

Get all language for a given value

Parameters

boolean $id_feature_value

Feature value id

Returns

array —

Array with value's languages

selectLang()

selectLang(array  $lang, integer  $id_lang) : string

Select the good lang in tab

Parameters

array $lang

Array with all language

integer $id_lang

Language id

Returns

string —

String value name selected

addFeatureValueImport()

addFeatureValueImport(  $id_feature,   $value,   $id_product = null,   $id_lang = null,   $custom = false) 

Parameters

$id_feature
$value
$id_product
$id_lang
$custom

add()

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

Parameters

$autodate
$nullValues

delete()

delete() 

update()

update(  $nullValues = false) 

Parameters

$nullValues