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

  • ProductAttributeRepositoryReader

Class ProductAttributeRepositoryReader

Class ProductAttributeRepositoryReader

ProductAttributeRepositoryReader implements ProductAttributeRepositoryReaderInterface
Package: ProductModule\Reader
Category: System
Located at CoreServices/ProductModule/Repositories/Reader/ProductAttributeRepositoryReader.inc.php

Methods summary

public
# __construct( CI_DB_query_builder $db, ProductAttributeFactoryInterface $factory )

Initialize the product attribute repository reader.

Initialize the product attribute repository reader.

Parameters

$db
$factory
public StoredProductAttributeInterface
# getAttributeById( IdType $productAttributeId )

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

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

Parameters

$productAttributeId
Id of expected product attribute entity.

Returns

StoredProductAttributeInterface
Expected product attribute entity.

Throws

UnexpectedValueException
If the requested product attribute was not found.
InvalidArgumentException
If the provided attribute ID is not valid.

Implementation of

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

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

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

Parameters

$productId
Id of product entity which belongs to the expected product attribute entities.

Returns

StoredProductAttributeCollection
Collection which contains all expected product attribute entities.

Throws

UnexpectedValueException
If the requested attributes were not found.
InvalidArgumentException
If the provided product ID ist not valid.

Implementation of

ProductAttributeRepositoryReaderInterface::getAttributesByProductId()
protected ProductAttributeRepositoryReader|ProductAttributeRepositoryReader
# _callStoredProductAttributeSetter( StoredProductAttributeInterface $storedProductAttribute, array $data )

Call the setter of the stored product attribute entity.

Call the setter of the stored product attribute entity.

Parameters

$storedProductAttribute
$data

Returns

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

Throws

InvalidArgumentException
IF the provided product attribute is not valid.
API documentation generated by ApiGen