Class ProductCategoryLinker

Class ProductCategoryLinker

ProductCategoryLinker implements ProductCategoryLinkerInterface

Methods summary

public __construct( CI_DB_query_builder $db )

Initialize the product category linker.

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

Links a product to a category.

public removeProductFromStartPage( IdType $productId ) : ProductRepositoryInterface|ProductCategoryLinker
public addProductToStartPage( IdType $productId ) : ProductRepositoryInterface|ProductCategoryLinker

Properties summary

protected $db : CI_DB_query_builder

		
protected $tableName : string
'products_to_categories'