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

Interfaces

  • ProductCategoryLinkerInterface
  • ProductFactoryInterface
  • ProductImageContainerInterface
  • ProductImageContainerRepositoryInterface
  • ProductImageInterface
  • ProductImagePathsSettingsInterface
  • ProductImageProcessingInterface
  • ProductInterface
  • ProductListProviderFactoryInterface
  • ProductListProviderInterface
  • ProductObjectServiceInterface
  • ProductPermissionSetterInterface
  • ProductReadServiceInterface
  • ProductRepositoryDeleterInterface
  • ProductRepositoryInterface
  • ProductRepositoryReaderInterface
  • ProductRepositoryWriterInterface
  • ProductSettingsInterface
  • ProductSettingsRepositoryInterface
  • ProductSettingsRepositoryReaderInterface
  • ProductSettingsRepositoryWriterInterface
  • ProductWriteServiceInterface
  • StoredProductInterface

Interface ProductRepositoryInterface

Interface ProductRepositoryInterface

Direct known implementers

ProductRepository

Package: Product\Interfaces
Category: System
Located at CoreServices/Product/Repositories/Interfaces/ProductRepositoryInterface.inc.php

Methods summary

public integer
# add( ProductInterface $product )

Adds a new product in the database.

Adds a new product in the database.

Parameters

$product
Product entity which holds the values for the database columns.

Returns

integer
Id of inserted product.
public ProductRepositoryInterface|ProductRepositoryInterface
# store( StoredProductInterface $product )

Updates an existing product in the database.

Updates an existing product in the database.

Parameters

$product
Product entity to update.

Returns

ProductRepositoryInterface|ProductRepositoryInterface
$this Same instance for chained method calls.
public StoredProductInterface
# getProductById( IdType $productId )

Returns a stored product by the given id.

Returns a stored product by the given id.

Parameters

$productId
Id of expected product entity.

Returns

StoredProductInterface
Product entity with the expected product id.
public ProductRepositoryInterface|ProductRepositoryInterface
# deleteProductById( IdType $productId )

Removes a product from the database by the given id.

Removes a product from the database by the given id.

Parameters

$productId
Id of expected product entity.

Returns

ProductRepositoryInterface|ProductRepositoryInterface
$this Same instance for chained method calls.
API documentation generated by ApiGen