ProductListProviderFactory
in package
implements
ProductListProviderFactoryInterface
Class ProductListProviderFactory
Tags
Interfaces, Classes and Traits
- ProductListProviderFactoryInterface
- Interface ProductListProviderFactoryInterface
Table of Contents
- $db : CI_DB_query_builder
- The database connection.
- $productRepo : ProductRepositoryInterface
- Product Repository.
- __construct() : mixed
- ProductListProviderFactory constructor.
- createProductListProvider() : ProductListProviderInterface
- Create Product List Provider
Properties
$db
The database connection.
private
CI_DB_query_builder
$db
$productRepo
Product Repository.
private
ProductRepositoryInterface
$productRepo
Methods
__construct()
ProductListProviderFactory constructor.
public
__construct(ProductRepositoryInterface $productRepo, CI_DB_query_builder $db) : mixed
Parameters
- $productRepo : ProductRepositoryInterface
-
Product repository.
- $db : CI_DB_query_builder
-
Database connection.
Return values
mixed —createProductListProvider()
Create Product List Provider
public
createProductListProvider(LanguageCode $languageCode[, array<string|int, mixed> $conditions = [] ]) : ProductListProviderInterface
Creates and returns a product list provider.
Parameters
- $languageCode : LanguageCode
-
Language code, for the language in which the product list provider should be returned.
- $conditions : array<string|int, mixed> = []
-
Database request conditions as an associative array.