phpDocumentor

ProductSettingsRepositoryReader
in package
implements ProductSettingsRepositoryReaderInterface

Class ProductSettingsRepositoryReader

Tags
category

System

subpackage

Repositories

Interfaces, Classes and Traits

ProductSettingsRepositoryReaderInterface
Interface ProductSettingsRepositoryReaderInterface

Table of Contents

$customerStatusProvider  : CustomerStatusProviderInterface
Customer Status Provider
$db  : CI_DB_query_builder
$productFactory  : ProductFactoryInterface
__construct()  : mixed
ProductSettingsRepositoryReader Constructor
getById()  : ProductSettingsInterface
Returns a product settings instance by the given product id.
_createProductByArray()  : GXEngineProduct
Creates an empty settings object, gets Data from the database
_setGroupPermissions()  : CategorySettingsRepositoryReader
Sets the permitted customers statuses.

Properties

Methods

_createProductByArray()

Creates an empty settings object, gets Data from the database

protected _createProductByArray(array<string|int, mixed> $data) : GXEngineProduct
Parameters
$data : array<string|int, mixed>

Product data.

Tags
throws
InvalidArgumentException

if the provided data argument is not valid.

Return values
GXEngineProduct

Same instance for chained method calls.

_setGroupPermissions()

Sets the permitted customers statuses.

protected _setGroupPermissions(array<string|int, mixed> $product, array<string|int, mixed> $groupPermissionIds, ProductSettingsInterface $productSettings) : CategorySettingsRepositoryReader
Parameters
$product : array<string|int, mixed>

The fetched product array from the database.

$groupPermissionIds : array<string|int, mixed>

Array of available group permission.

$productSettings : ProductSettingsInterface

Object to set the customer statuses.

Return values
CategorySettingsRepositoryReader

Same instance for chained method calls.

Search results