CategoryRepositoryReaderInterface

Extends

Interface CategoryRepositoryReaderInterface

This interface defines methods for fetching category records from the database and is used in the category repository among the classes for writing and deleting category records.

category

System

package

Category

subpackage

Interfaces

Methods

Returns a category by the given ID.

getById(\IdType $categoryId) : \StoredCategoryInterface

Arguments

$categoryId

\IdType

Category ID.

Response

\StoredCategoryInterface

Returns all Categories with the provided parent ID.

getByParentId(\IdType $parentId) : \IdCollection

Arguments

$parentId

\IdType

Response

\IdCollection

Returns an id collection with the ids of subcategories.

getCategoryIdsTree(\IdType $parentCategoryId) : \IdCollection

Arguments

$parentCategoryId

\IdType

Parent category id.

Response

\IdCollection