CategorySettingsRepositoryWriter

Implements \CategorySettingsRepositoryWriterInterface

Class CategorySettingsRepositoryWriter

This class provides methods for updating 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

Methods

Initialize the category settings repository writer.

__construct(\CI_DB_query_builder $dbQueryBuilder, \CustomerStatusProviderInterface $customerStatusProvider) 

Arguments

$dbQueryBuilder

\CI_DB_query_builder

Database connector.

$customerStatusProvider

\CustomerStatusProviderInterface

Customer Status Provider

Updates a specific category settings entity.

update(\IdType $categoryId, \CategorySettingsInterface $settings) : \CategorySettingsRepositoryWriter
Throws
\UnexpectedValueException
\InvalidArgumentException

Arguments

$categoryId

\IdType

Category ID.

$settings

\CategorySettingsInterface

Category settings.

Response

\CategorySettingsRepositoryWriter

Same instance for chained method calls.

Properties

Database Connection

db : \CI_DB_query_builder
var

Type(s)

\CI_DB_query_builder

Table name

table : string
var

Type(s)

string

Customer Status Provider

customerStatusProvider : \CustomerStatusProviderInterface