Interface CategoryReadServiceInterface

Interface CategoryReadServiceInterface

This interface defines methods for retrieving data of a particular category and a collection of specific categories.

Direct known implementers

CategoryReadService

Methods summary

public getCategoryById( IdType $categoryId ) : StoredCategoryInterface

Returns a StoredCategory object with the provided category ID.

public getCategoryList( LanguageCode $languageCode, IdType $parentId = null, IdType $customerStatusLimit = null ) : CategoryListItemCollection

Returns a CategoryListItemCollection.

public getActiveCategoryList( LanguageCode $languageCode, IdType $parentId = null, IdType $customerStatusLimit = null ) : CategoryListItemCollection

Returns an active CategoryListItemCollection of active categories.

public getRewriteUrls( IdType $categoryId ) : UrlRewriteCollection

Returns an UrlRewriteCollection with UrlRewrite instances for the provided category ID.

public findRewriteUrl( IdType $categoryId, IdType $languageId ) : null|UrlRewrite

Returns a single UrlRewrite instance for the provided category ID and language ID or NULL if no entry was found.

public findUrlRewritesByRewriteUrl( NonEmptyStringType $rewriteUrl ) : UrlRewriteCollection

Returns an UrlRewriteCollection with UrlRewrite instances for the provided rewrite url.

public getCategoryIdsTree( IdType $parentCategoryId ) : IdCollection

Returns an id collection with the ids of subcategories.