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

  • ProductObjectService
  • ProductReadService
  • ProductWriteService

Class ProductReadService

Class ProductReadService

ProductReadService implements ProductReadServiceInterface
Package: Product
Category: System
Located at CoreServices/Product/ProductReadService.inc.php

Methods summary

public
# __construct( ProductRepositoryInterface $productRepo, ProductListProviderFactoryInterface $listProviderFactory, ProductCategoryLinkerInterface $productLinker )

ProductReadService constructor.

ProductReadService constructor.

Parameters

$productRepo
$listProviderFactory
$productLinker
public StoredProductInterface
# getProductById( IdType $productId )

Get Product by ID

Get Product by ID

Returns a specific product, depending on the provided ID.

Parameters

$productId
The ID of the product to return.

Returns

StoredProductInterface
The stored product.

Implementation of

ProductReadServiceInterface::getProductById()
public ProductListItemCollection
# getProductList( LanguageCode $languageCode, IdType $categoryId = null, IdType $customerStatusLimit = null )

Get Product List

Get Product List

Returns a specific product list.

Parameters

$languageCode
The language code.
$categoryId
The category ID of the product list.
$customerStatusLimit
The customers status limit.

Returns

ProductListItemCollection

Implementation of

ProductReadServiceInterface::getProductList()
public ProductListItemCollection
# getActiveProductList( LanguageCode $languageCode, IdType $categoryId = null, IdType $customerStatusLimit = null )

Get Active Product List

Get Active Product List

Returns an active products list.

Parameters

$languageCode
The language code.
$categoryId
The category ID of the product list.
$customerStatusLimit
The customers status limit.

Returns

ProductListItemCollection

Implementation of

ProductReadServiceInterface::getActiveProductList()
public IdCollection
# getProductLinks( IdType $productId )

Returns the category Ids which are linked with given product id.

Returns the category Ids which are linked with given product id.

Parameters

$productId

Returns

IdCollection

Implementation of

ProductReadServiceInterface::getProductLinks()

Properties summary

protected ProductRepositoryInterface $productRepo
#
protected ProductListProviderFactoryInterface $listProviderFactory
#
protected ProductCategoryLinkerInterface $productLinker

The product category linker.

The product category linker.

#
API documentation generated by ApiGen