Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • ApiV2Controllers
  • Category
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • Customer
    • Address
    • Country
    • CountryZone
    • Interfaces
    • Validation
    • ValueObjects
  • Email
    • Collections
    • Entities
    • Exceptions
    • Interfaces
    • Repository
    • ValueObjects
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • None
  • Order
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
    • ValueObjects
  • Product
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • ProductModule
    • Collections
    • Deleter
    • Entities
    • Factories
    • Interface
    • Interfaces
    • Reader
    • Repositories
    • Writer
  • Shared
    • Exceptions
    • FileSystem
    • Interfaces
    • Storage
    • Types
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository

Classes

  • ProductCategoryLinker
  • ProductImageContainerRepository
  • ProductPermissionSetter
  • ProductRepository
  • ProductRepositoryDeleter
  • ProductRepositoryReader
  • ProductRepositoryWriter
  • ProductSettingsRepository
  • ProductSettingsRepositoryReader
  • ProductSettingsRepositoryWriter

Class ProductSettingsRepositoryReader

Class ProductSettingsRepositoryReader

ProductSettingsRepositoryReader implements ProductSettingsRepositoryReaderInterface
Package: Product\Repositories
Category: System
Located at CoreServices/Product/Repositories/Reader/ProductSettingsRepositoryReader.inc.php

Methods summary

public
# __construct( CI_DB_query_builder $db, ProductFactoryInterface $productFactory, CustomerStatusProviderInterface $customerStatusProvider )

ProductSettingsRepositoryReader Constructor

ProductSettingsRepositoryReader Constructor

Parameters

$db
Database connection.
$productFactory
Product factory.
$customerStatusProvider
Customer Status Provider.
public ProductSettingsInterface
# getById( IdType $productId )

Returns a product settings instance by the given product id.

Returns a product settings instance by the given product id.

Parameters

$productId
Id of product entity.

Returns

ProductSettingsInterface
Entity with product settings for the expected product id.

Throws

UnexpectedValueException
if the product was not found by the provided ID.

Implementation of

ProductSettingsRepositoryReaderInterface::getById()
protected GXEngineProduct
# _createProductByArray( array $data )

Creates an empty settings object, gets Data from the database

Creates an empty settings object, gets Data from the database

Parameters

$data
Product data.

Returns

GXEngineProduct
Same instance for chained method calls.

Throws

InvalidArgumentException
if the provided data argument is not valid.
protected CategorySettingsRepositoryReader
# _setGroupPermissions( array $product, array $groupPermissionIds, ProductSettingsInterface $productSettings )

Sets the permitted customers statuses.

Sets the permitted customers statuses.

Parameters

$product
The fetched product array from the database.
$groupPermissionIds
Array of available group permission.
$productSettings
Object to set the customer statuses.

Returns

CategorySettingsRepositoryReader
Same instance for chained method calls.

Properties summary

protected CI_DB_query_builder $db
#
protected ProductFactoryInterface $productFactory
#
protected CustomerStatusProviderInterface $customerStatusProvider

Customer Status Provider

Customer Status Provider

#
API documentation generated by ApiGen