phpDocumentor

CategorySettingsRepositoryReader
in package
implements CategorySettingsRepositoryReaderInterface

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.

Tags
category

System

subpackage

Repositories

Interfaces, Classes and Traits

CategorySettingsRepositoryReaderInterface
Interface CategorySettingsRepositoryReaderInterface

Table of Contents

$categoryFactory  : CategoryFactoryInterface
Category factory
$customerStatusProvider  : CustomerStatusProviderInterface
Customer Status Provider
$db  : CI_DB_query_builder
Database Connection
__construct()  : mixed
CategorySettingsRepositoryReader constructor.
getById()  : CategorySettingsInterface
Returns category settings based on ID given.
_createAndReturnCategorySettings()  : CategorySettings
Creates a CategorySettings object and returns it.
_setGroupPermissions()  : CategorySettingsRepositoryReader
Sets the permitted customers statuses.

Properties

Methods

_createAndReturnCategorySettings()

Creates a CategorySettings object and returns it.

protected _createAndReturnCategorySettings(array<string|int, mixed> $category) : CategorySettings
Parameters
$category : array<string|int, mixed>

Fetched Associative category array.

Tags
throws
UnexpectedValueException
throws
InvalidArgumentException
Return values
CategorySettings

$categorySettings

_setGroupPermissions()

Sets the permitted customers statuses.

protected _setGroupPermissions(array<string|int, mixed> $category, array<string|int, mixed> $groupPermissionIds, CategorySettings $categorySettings) : CategorySettingsRepositoryReader
Parameters
$category : array<string|int, mixed>

The fetched category array from the database.

$groupPermissionIds : array<string|int, mixed>

Array of available group permission.

$categorySettings : CategorySettings

Object to set the customer statuses.

Tags
throws
InvalidArgumentException
Return values
CategorySettingsRepositoryReader

Same instance for chained method calls.

Search results