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(bool $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()

No description

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(bool $allowAttributeSets)

No description

Parameters

bool $allowAttributeSets

__construct(Category $categoryEntity, EntityManager $entityManager)

No description

Parameters

Category $categoryEntity
EntityManager $entityManager

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

No description

Parameters

$handle
$name
$pkg
$locked

addKey(Set $set, Key $key)

No description

Parameters

Set $set
Key $key

updateAttributeSetDisplayOrder($asIDs)

Update the order of the attribute sets.

Parameters

$asIDs