Class CategoryRepositoryReader
This class provides methods for fetching specific 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 |
Repositories |
__construct(\CI_DB_query_builder $db, \CategoryFactoryInterface $categoryFactory)
\CI_DB_query_builder
Database connector.
getById(\IdType $categoryId) : \StoredCategoryInterface
Throws |
|
---|
\StoredCategoryInterface
getByParentId(\IdType $parentId) : \IdCollection
getCategoryIdsTree(\IdType $parentCategoryId) : \IdCollection