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 ProductRepositoryReader

Class ProductRepositoryReader

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

Methods summary

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

ProductRepositoryReader constructor.

ProductRepositoryReader constructor.

Parameters

$db
$productFactory
$customerStatusProvider
public StoredProductInterface
# getById( IdType $productId )

Returns a product entity instance by the given product id.

Returns a product entity instance by the given product id.

Parameters

$productId
Id of product entity.

Returns

StoredProductInterface
Product entity with the expected product id.

Throws

UnexpectedValueException
InvalidArgumentException

Implementation of

ProductRepositoryReaderInterface::getById()
protected StoredProduct
# _createProductByArray( array $product, array $productDescription )

Create Product by Array

Create Product by Array

Creates and returns a StoredProduct.

Parameters

$product
Product query result.
$productDescription
Product description query result.

Returns

StoredProduct
StoredProduct object.

Throws

InvalidArgumentException
UnexpectedValueException

Properties summary

protected CI_DB_query_builder $db

DB Connection.

DB Connection.

#
protected ProductFactory $productFactory

Product Factory

Product Factory

#
protected CustomerStatusProviderInterface $customerStatusProvider

Customer Status Provider

Customer Status Provider

#
API documentation generated by ApiGen