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_builderDatabase connector.
_createCategoryByArray(array $categoryData, array $categoryDescriptionData) : \StoredCategory
| Throws |
|
|---|
arrayCategory query result.
arrayCategory description query result.
\StoredCategoryReturns the complete category object.
_getCategoryIdsTreeArray(\IdType $parentCategoryId) : array
arrayContains unsorted ids of sub categories from passed parent category id.
getById(\IdType $categoryId) : \StoredCategoryInterface
| Throws |
|
|---|
\StoredCategoryInterface
getByParentId(\IdType $parentId) : \IdCollection
getCategoryIdsTree(\IdType $parentCategoryId) : \IdCollection
db : \CI_DB_query_builder
| var |
|---|
\CI_DB_query_builder