Properties

$name

$name : string

Type

string — Name

$is_color_group

$is_color_group : 

Type

$position

$position : 

Type

$group_type

$group_type : 

Type

$public_name

$public_name : string

Type

string — Public Name

$definition

$definition : 

Type

$webserviceParameters

$webserviceParameters : 

Type

Methods

add()

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

Parameters

$autodate
$nullValues

update()

update(  $nullValues = false) 

Parameters

$nullValues

cleanDeadCombinations()

cleanDeadCombinations() 

delete()

delete() 

getAttributes()

getAttributes(integer  $id_lang, boolean  $id_attribute_group) : array

Get all attributes for a given language / group

Parameters

integer $id_lang

Language id

boolean $id_attribute_group

Attribute group id

Returns

array —

Attributes

getAttributesGroups()

getAttributesGroups(integer  $id_lang) : array

Get all attributes groups for a given language

Parameters

integer $id_lang

Language id

Returns

array —

Attributes groups

deleteSelection()

deleteSelection(  $selection) 

Delete several objects from database

return boolean Deletion result

Parameters

$selection

setWsProductOptionValues()

setWsProductOptionValues(  $values) 

Parameters

$values

getWsProductOptionValues()

getWsProductOptionValues() 

updatePosition()

updatePosition(boolean  $way, integer  $position) : boolean

Move a group attribute

Parameters

boolean $way

Up (1) or Down (0)

integer $position

Returns

boolean —

Update result

cleanPositions()

cleanPositions() : boolean

Reorder group attribute position Call it after deleting a group attribute.

Returns

boolean —

$return

getHigherPosition()

getHigherPosition() : integer

getHigherPosition

Get the higher group attribute position

Returns

integer —

$position