ProductListProviderFactory

Implements \ProductListProviderFactoryInterface

Class ProductListProviderFactory

category

System

package

Product

subpackage

Factories

Methods

ProductListProviderFactory constructor.

__construct(\ProductRepositoryInterface $productRepo, \CI_DB_query_builder $db) 

Arguments

$productRepo

\ProductRepositoryInterface

Product repository.

$db

\CI_DB_query_builder

Database connection.

Create Product List Provider

createProductListProvider(\LanguageCode $languageCode, array $conditions = array()) : \ProductListProviderInterface

Creates and returns a product list provider.

Arguments

$languageCode

\LanguageCode

Language code, for the language in which the product list provider should be returned.

$conditions

array

Database request conditions as an associative array.

Response

\ProductListProviderInterface

Properties

Product Repository.

productRepo : \ProductRepositoryInterface

The database connection.

db : \CI_DB_query_builder
var

Type(s)

\CI_DB_query_builder