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 ProductCategoryLinkerInterface

Interface ProductCategoryLinkerInterface

Direct known implementers

ProductCategoryLinker

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

Methods summary

public
# linkProduct( IdType $productId, IdType $targetCategoryId )

Links a product to a category.

Links a product to a category.

Parameters

$productId
Product ID.
$targetCategoryId
Target category ID.

Returns


$this|ProductCategoryLinkerInterface Same instance for chained method calls.
public
# changeProductLink( IdType $productId, IdType $currentCategoryId, IdType $newCategoryId )

Changes a link to a new category.

Changes a link to a new category.

Parameters

$productId
Product ID.
$currentCategoryId
Category ID which the product is linked to.
$newCategoryId
New category to be linked to.

Returns


$this|ProductCategoryLinkerInterface Same instance for chained method calls.
public
# deleteProductLink( IdType $productId, IdType $categoryId )

Removes a link to a category.

Removes a link to a category.

Parameters

$productId
Product ID.
$categoryId
Category ID which the link should be removed to.

Returns


$this|ProductCategoryLinkerInterface Same instance for chained method calls.
public
# deleteProductLinks( IdType $productId )

Removes all links from a product.

Removes all links from a product.

Parameters

$productId
Product ID.

Returns


$this|ProductCategoryLinkerInterface Same instance for chained method calls.
public IdCollection
# getProductLinks( IdType $productId )

Returns the category Ids which are linked with given product id.

Returns the category Ids which are linked with given product id.

Parameters

$productId

Returns

IdCollection
API documentation generated by ApiGen