class CategoryService (View source)

Properties

protected $entityManager

Methods

__construct(EntityManager $entityManager)

No description

Category|null
getByHandle(string $akCategoryHandle)

Get a attribute category given its handle.

Category|null
getByID(int $akCategoryID)

Get a attribute category given its ID.

getList()

Get all the available attribute categories.

getListByPackage(Package $pkg)

Get all the available attribute categories created by a package.

add(string $akCategoryHandle, int $allowSets = StandardSetManager::ASET_ALLOW_SINGLE, Package|null $pkg = null)

Create a new attribute category.

exportTranslations() deprecated

No description

Details

__construct(EntityManager $entityManager)

No description

Parameters

EntityManager $entityManager

Category|null getByHandle(string $akCategoryHandle)

Get a attribute category given its handle.

Parameters

string $akCategoryHandle

Return Value

Category|null

Category|null getByID(int $akCategoryID)

Get a attribute category given its ID.

Parameters

int $akCategoryID

Return Value

Category|null

Category[] getList()

Get all the available attribute categories.

Return Value

Category[]

Category[] getListByPackage(Package $pkg)

Get all the available attribute categories created by a package.

Parameters

Package $pkg

Return Value

Category[]

CategoryInterface add(string $akCategoryHandle, int $allowSets = StandardSetManager::ASET_ALLOW_SINGLE, Package|null $pkg = null)

Create a new attribute category.

Parameters

string $akCategoryHandle

the category handle

int $allowSets

One of the StandardSetManager::ASETALLOW... constants

Package|null $pkg

the package that is creating this category

Return Value

CategoryInterface

exportTranslations() deprecated

deprecated

No description