Class CategoryReadService
This class provides methods for retrieving data of a particular category and a collection of specific categories.
category |
System |
---|---|
package |
Category |
__construct(\CategoryRepositoryInterface $categoryRepo, \CategoryListProviderFactoryInterface $categoryListProviderFactory, \UrlRewriteStorage $urlRewriteStorage)
findRewriteUrl(\IdType $categoryId, \IdType $languageId) : null|\UrlRewrite
findUrlRewritesByRewriteUrl(\NonEmptyStringType $rewriteUrl) : \UrlRewriteCollection
getActiveCategoryList(\LanguageCode $languageCode, \IdType|null $parentId = null, \IdType|null $customerStatusLimit = null) : \CategoryListItemCollection
getCategoryById(\IdType $categoryId) : \StoredCategoryInterface
getCategoryIdsTree(\IdType $parentCategoryId) : \IdCollection
getCategoryList(\LanguageCode $languageCode, \IdType|null $parentId = null, \IdType|null $customerStatusLimit = null) : \CategoryListItemCollection
getRewriteUrls(\IdType $categoryId) : \UrlRewriteCollection
searchCategories(\LanguageCode $languageCode, \CategorySearchCondition $condition, \Pager|null $pager = null, array $sorters = array()) : \CategoryListItemCollection
array
(Optional) array of Sorter objects with data sorting information
\CategoryListItemCollection
categoryRepo : \CategoryRepositoryInterface
categoryListProviderFactory : \CategoryListProviderFactoryInterface