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.
_createCategoryByArray(array $categoryData, array $categoryDescriptionData) : \StoredCategory
Throws |
|
---|
array
Category query result.
array
Category description query result.
\StoredCategory
Returns the complete category object.
_getCategoryIdsTreeArray(\IdType $parentCategoryId) : array
array
Contains 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