CategorySettingsRepository

Implements \CategorySettingsRepositoryInterface

Class CategorySettingsRepository

This class handles the database operations that concern settings regarding display and visibility mode of category related data of the database. It provides a layer for more complicated methods that use the writer, reader and deleter.

category

System

package

Category

subpackage

Repositories

Methods

CategorySettingsRepository constructor.

__construct(\CategorySettingsRepositoryReaderInterface $reader, \CategorySettingsRepositoryWriterInterface $writer) 

Arguments

$reader

\CategorySettingsRepositoryReaderInterface

Category settings repository reader.

$writer

\CategorySettingsRepositoryWriterInterface

Category settings repository writer

Returns the category settings based on the given ID.

getCategorySettingsById(\IdType $categoryId) : \CategorySettingsInterface

Arguments

$categoryId

\IdType

Category ID.

Response

\CategorySettingsInterface

Stores the category settings.

store(\IdType $categoryId, \CategorySettingsInterface $settings) : \CategorySettingsRepository

Arguments

$categoryId

\IdType

Category ID.

$settings

\CategorySettingsInterface

Category settings.

Response

\CategorySettingsRepository

Same instance for chained method calls.

Properties

Category settings repository reader.

reader : \CategorySettingsRepositoryReaderInterface

Category settings repository writer.

writer : \CategorySettingsRepositoryWriterInterface