CategoryListProviderFactory

Implements \CategoryListProviderFactoryInterface

Class CategoryListProviderFactory

This class creates CategoryListProvider objects for a specific language and filter of customer status permissions with its dependencies.

category

System

package

Category

subpackage

Factories

Methods

CategoryListProviderFactory constructor.

__construct(\CategoryRepositoryInterface $categoryRepo, \CI_DB_query_builder $db) 

Arguments

$categoryRepo

\CategoryRepositoryInterface

Category repository.

$db

\CI_DB_query_builder

Database connector.

Creates a CategoryListProvider for retrieving lists.

createCategoryListProvider(\LanguageCode $languageCode, array $conditions = array()) : \CategoryListProviderInterface

Arguments

$languageCode

\LanguageCode

Two letter language code.

$conditions

array

Optional conditions for data request.

Response

\CategoryListProviderInterface

Properties

Category repository.

categoryRepo : \CategoryRepositoryInterface

Database connector.

db : \CI_DB_query_builder
var

Type(s)

\CI_DB_query_builder