CategorySettingsRepositoryInterface
in
Interface CategorySettingsRepositoryInterface
This interface 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.
Tags
Table of Contents
- getCategorySettingsById() : CategorySettingsInterface
- Returns the category settings based on the given ID.
- store() : mixed
- Stores the category settings.
Methods
getCategorySettingsById()
Returns the category settings based on the given ID.
public
getCategorySettingsById(IdType $categoryId) : CategorySettingsInterface
Parameters
- $categoryId : IdType
-
Category ID.
Return values
CategorySettingsInterface —store()
Stores the category settings.
public
store(IdType $categoryId, CategorySettingsInterface $settings) : mixed
Parameters
- $categoryId : IdType
-
Category ID.
- $settings : CategorySettingsInterface
-
Category settings.