Properties

$name

$name : string

Type

string — Name

$position

$position : 

Type

$definition

$definition : 

Type

$webserviceParameters

$webserviceParameters : 

Type

Methods

getFeature()

getFeature(integer  $id_lang, integer  $id_feature) : array

Get a feature data for a given id_feature and id_lang

Parameters

integer $id_lang

Language id

integer $id_feature

Feature id

Returns

array —

Array with feature's data

getFeatures()

getFeatures(integer  $id_lang,   $with_shop = true) : array

Get all features for a given language

Parameters

integer $id_lang

Language id

$with_shop

Returns

array —

Multiple arrays with feature's data

deleteSelection()

deleteSelection(array  $selection) : boolean

Delete several objects from database

Parameters

array $selection

Array with items to delete

Returns

boolean —

Deletion result

add()

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

Parameters

$autodate
$nullValues

delete()

delete() 

update()

update(  $nullValues = false) 

Parameters

$nullValues

nbFeatures()

nbFeatures(integer  $id_lang) : integer

Count number of features for a given language

Parameters

integer $id_lang

Language id

Returns

integer —

Number of feature

addFeatureImport()

addFeatureImport(  $name,   $position = false) 

Create a feature from import

Parameters

$name
$position

getFeaturesForComparison()

getFeaturesForComparison(  $list_ids_product,   $id_lang) 

Parameters

$list_ids_product
$id_lang

isFeatureActive()

isFeatureActive() : boolean

This metohd is allow to know if a feature is used or active

Returns

boolean

updatePosition()

updatePosition(boolean  $way, integer  $position,   $id_feature = null) : boolean

Move a feature

Parameters

boolean $way

Up (1) or Down (0)

integer $position
$id_feature

Returns

boolean —

Update result

cleanPositions()

cleanPositions() : boolean

Reorder feature position Call it after deleting a feature.

Returns

boolean —

$return

getHigherPosition()

getHigherPosition() : integer

getHigherPosition

Get the higher feature position

Returns

integer —

$position