Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • AdminHttpViewControllers
  • ApiV2Controllers
  • Authentication
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Strategies
  • Category
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • Customer
    • Address
    • Country
    • CountryZone
    • Interfaces
    • Storages
    • Validation
    • ValueObjects
  • Email
    • Collections
    • Entities
    • Exceptions
    • Interfaces
    • Repository
    • ValueObjects
  • Extensions
    • Customers
    • Emails
    • Helpers
    • Invoices
    • Orders
    • Serializers
    • Templates
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • HttpViewControllers
  • InfoBox
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
  • Invoice
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • Modules
    • Collections
    • Controllers
    • Interfaces
  • None
  • Order
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
    • ValueObjects
  • Precheck
  • Product
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • ProductModule
    • Collections
    • Deleter
    • Entities
    • Factories
    • Interface
    • Interfaces
    • Reader
    • Repositories
    • Writer
  • Shared
    • ClassFinder
    • Exceptions
    • FileSystem
    • Interfaces
    • Storage
    • Types
  • SharedShoppingCart
    • Interfaces
  • Slider
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository

Classes

  • ProductAttributeObjectService
  • ProductAttributeService

Interfaces

  • ProductAttributeFactoryInterface
  • ProductAttributeInterface
  • ProductAttributeObjectServiceInterface
  • ProductAttributeServiceInterface
  • StoredProductAttributeInterface

Interface ProductAttributeServiceInterface

Interface ProductAttributeServiceInterface

Direct known implementers

ProductAttributeService

Package: ProductModule\Interfaces
Category: System
Located at Services/Core/ProductModule/Interfaces/ProductAttributeServiceInterface.inc.php

Methods summary

public integer
# addAttribute( IdType $productId, ProductAttributeInterface $attribute )

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.
$attribute
Product attribute entity to add.

Returns

integer
Id of inserted product attribute.
public
# updateAttribute( StoredProductAttributeInterface $attribute )

Updates the passed product attribute entity.

Updates the passed product attribute entity.

Parameters

$attribute
Product attribute entity to update.

Returns


$this|ProductAttributeServiceInterface Same instance for chained method calls.
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.
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.
public ProductAttributeServiceInterface|ProductAttributeServiceInterface
# removeAttributeById( 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

ProductAttributeServiceInterface|ProductAttributeServiceInterface
$this Same instance for chained method calls.
public ProductAttributeServiceInterface|ProductAttributeServiceInterface
# removeAttributesByProductId( 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

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