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

  • ProductAttributeRepository

Class ProductAttributeRepository

Class ProductAttributeRepository

ProductAttributeRepository implements ProductAttributeRepositoryInterface
Package: ProductModule\Repositories
Category: System
Located at CoreServices/ProductModule/Repositories/ProductAttributeRepository.inc.php

Methods summary

public
# __construct( ProductAttributeRepositoryReaderInterface $reader, ProductAttributeRepositoryWriterInterface $writer, ProductAttributeRepositoryDeleterInterface $deleter )

Initialize the product attribute repository.

Initialize the product attribute repository.

Parameters

$reader
$writer
$deleter
public integer
# addToProduct( IdType $productId, ProductAttributeInterface $productAttribute )

Adds an product attribute to a product by the given id.

Adds an product attribute to a product by the given id.

Parameters

$productId
Id of product entity that adds the attribute.
$productAttribute
Product attribute entity to add.

Returns

integer
Id of added product attribute entity.

Implementation of

ProductAttributeRepositoryInterface::addToProduct()
public ProductAttributeRepository|ProductAttributeRepository
# store( StoredProductAttributeInterface $productAttribute )

Stores/Updates the passed product attribute entity.

Stores/Updates the passed product attribute entity.

Parameters

$productAttribute
Product attribute entity to store.

Returns

ProductAttributeRepository|ProductAttributeRepository
$this Same instance for chained method calls.

Implementation of

ProductAttributeRepositoryInterface::store()
public StoredProductAttributeInterface
# getAttributeById( IdType $productAttributeId )

Returns a stored product attribute entity by the given product attribute id.

Returns a stored product attribute entity by the given product attribute id.

Parameters

$productAttributeId
Id of expected product attribute entity.

Returns

StoredProductAttributeInterface
Expected stored product attribute entity.

Implementation of

ProductAttributeRepositoryInterface::getAttributeById()
public StoredProductAttributeCollection
# getAttributesByProductId( IdType $productId )

Returns a collection with all attribute entities that belongs to a product entity by the given product id.

Returns a collection with all attribute entities that belongs to a product entity by the given product id.

Parameters

$productId
Id of product entity that contain the expected attributes.

Returns

StoredProductAttributeCollection
Collection with all attributes that belongs to the product.

Implementation of

ProductAttributeRepositoryInterface::getAttributesByProductId()
public ProductAttributeRepository|ProductAttributeRepository
# deleteAttributeById( IdType $productAttributeId )

Removes a product attribute entity by the given product attribute id.

Removes a product attribute entity by the given product attribute id.

Parameters

$productAttributeId
Id of product attribute entity that should be deleted.

Returns

ProductAttributeRepository|ProductAttributeRepository
$this Same instance for chained method calls.

Implementation of

ProductAttributeRepositoryInterface::deleteAttributeById()
public ProductAttributeRepository|ProductAttributeRepository
# deleteAttributesByProductId( IdType $productId )

Removes product attributes by the given product id.

Removes product attributes by the given product id.

Parameters

$productId
Id of product entity of the attributes that should be deleted.

Returns

ProductAttributeRepository|ProductAttributeRepository
$this Same instance for chained method calls.

Implementation of

ProductAttributeRepositoryInterface::deleteAttributesByProductId()

Properties summary

protected ProductAttributeRepositoryReaderInterface $reader
#
protected ProductAttributeRepositoryWriterInterface $writer
#
protected ProductAttributeRepositoryDeleterInterface $deleter
#
API documentation generated by ApiGen