Class CategorySettingsRepositoryReader
This class provides methods for fetching particular columns of specific category records in the database. The category settings are stored in the categories table and are more related to display and visibility modes of category related data.
category |
System |
---|---|
package |
Category |
subpackage |
Repositories |
__construct(\CI_DB_query_builder $db, \CategoryFactoryInterface $categoryFactory, \CustomerStatusProviderInterface $customerStatusProvider)
\CI_DB_query_builder
Database connector.
_createAndReturnCategorySettings(array $category) : \CategorySettings
Throws |
|
---|
array
Fetched Associative category array.
\CategorySettings
$categorySettings
_setGroupPermissions(array $category, array $groupPermissionIds, \CategorySettings $categorySettings) : \CategorySettingsRepositoryReader
Throws |
|
---|
array
The fetched category array from the database.
array
Array of available group permission.
\CategorySettingsRepositoryReader
Same instance for chained method calls.
getById(\IdType $categoryId) : \CategorySettingsInterface
Throws |
|
---|
\CategorySettingsInterface
db : \CI_DB_query_builder
var |
---|
\CI_DB_query_builder
customerStatusProvider : \CustomerStatusProviderInterface