Class CategoryRepository
This class handles the database operations that concern the category records of the database. It provides a layer for more complicated methods that use the writer, reader and deleter.
category |
System |
---|---|
package |
Category |
subpackage |
Repositories |
__construct(\CategoryRepositoryReaderInterface $reader, \CategoryRepositoryWriterInterface $writer, \CategoryRepositoryDeleterInterface $deleter, \CategorySettingsRepositoryInterface $settingsRepo, \AddonValueServiceInterface $addonValueService, \CustomerStatusProviderInterface $customerStatusProvider, \UrlRewriteStorage $urlRewriteStorage, \DeleteHistoryWriteServiceInterface $deleteHistoryWriteService)
\CategoryRepositoryWriterInterface
Writer instance to store or add category data in the storage.
\CategoryRepositoryDeleterInterface
Deleter instance to remove category data from the storage.
\CategorySettingsRepositoryInterface
Category setting repository to save/add/remove category settings in the storage.
\AddonValueServiceInterface
Addon value service instance to handle the category addon values.
\CustomerStatusProviderInterface
Customer status provider to handle group permissions
\DeleteHistoryWriteServiceInterface
add(\CategoryInterface $category) : integer
deleteCategoryById(\IdType $categoryId) : \CategoryRepository
getCategoryById(\IdType $categoryId) : \StoredCategoryInterface
getCategoryIdsByParentId(\IdType $parentId) : \IdCollection
getCategoryIdsTree(\IdType $parentCategoryId) : \IdCollection
store(\StoredCategoryInterface $category) : \CategoryRepository
reader : \CategoryRepositoryReaderInterface
writer : \CategoryRepositoryWriterInterface
deleter : \CategoryRepositoryDeleterInterface
settingsRepo : \CategorySettingsRepositoryInterface
addonValueService : \AddonValueServiceInterface
customerStatusProvider : \CustomerStatusProviderInterface
deleteHistoryWriteService : \DeleteHistoryWriteServiceInterface