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

  • ProductAttributeRepositoryWriter

Class ProductAttributeRepositoryWriter

Class ProductAttributeRepositoryWriter

ProductAttributeRepositoryWriter implements ProductAttributeRepositoryWriterInterface
Package: ProductModule\Writer
Category: System
Located at CoreServices/ProductModule/Repositories/Writer/ProductAttributeRepositoryWriter.inc.php

Methods summary

public
# __construct( CI_DB_query_builder $db )

Initialize the product attribute repository writer.

Initialize the product attribute repository writer.

Parameters

$db
public integer
# insertIntoProduct( IdType $productId, ProductAttributeInterface $productAttribute )

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

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

Parameters

$productId

Id of product entity which should belongs to the added attributes.

$productAttribute
Product attribute entity to add to the product.

Returns

integer
Id of the stored product attribute.

Implementation of

ProductAttributeRepositoryWriterInterface::insertIntoProduct()
public ProductAttributeRepositoryWriter|ProductAttributeRepositoryWriter
# update( StoredProductAttributeInterface $productAttribute )

Updates a product attribute entity.

Updates a product attribute entity.

Parameters

$productAttribute
Product attribute entity to update.

Returns

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

Implementation of

ProductAttributeRepositoryWriterInterface::update()

Properties summary

protected CI_DB_query_builder $db
#
protected string $tableName
# 'products_attributes'
API documentation generated by ApiGen