class StandardSetManager implements SetManagerInterface (View source)

Handles adding and removing keys from attribute sets.

Constants

ASET_ALLOW_NONE

ASET_ALLOW_SINGLE

ASET_ALLOW_MULTIPLE

Properties

protected $entityManager
protected $allowAttributeSets
protected $categoryEntity

Methods

int
allowAttributeSets()

No description

getUnassignedAttributeKeys()

Get the attribute keys that are not in any set.

Set[]
getAttributeSets()

Get the attribute sets.

setAllowAttributeSets(boolean $allowAttributeSets)

No description

__construct(Category $categoryEntity, EntityManager $entityManager)

No description

addSet($handle, $name, $pkg = null, $locked = null)

No description

addKey(Set $set, Key $key)

No description

updateAttributeSetDisplayOrder($asIDs)

Update the order of the attribute sets.

Details

int allowAttributeSets()

Return Value

int

AttributeKeyInterface getUnassignedAttributeKeys()

Get the attribute keys that are not in any set.

Return Value

AttributeKeyInterface

Set[] getAttributeSets()

Get the attribute sets.

Return Value

Set[]

setAllowAttributeSets(boolean $allowAttributeSets)

Parameters

boolean $allowAttributeSets

__construct(Category $categoryEntity, EntityManager $entityManager)

Parameters

Category $categoryEntity
EntityManager $entityManager

addSet($handle, $name, $pkg = null, $locked = null)

Parameters

$handle
$name
$pkg
$locked

addKey(Set $set, Key $key)

Parameters

Set $set
Key $key

updateAttributeSetDisplayOrder($asIDs)

Update the order of the attribute sets.

Parameters

$asIDs