Class ProductListProvider
Class ProductListProvider
- ProductListProvider implements ProductListProviderInterface
Package: Product\Providers
Category: System
Located at Services/Core/Product/Providers/ProductListProvider.inc.php
Category: System
Located at Services/Core/Product/Providers/ProductListProvider.inc.php
Methods summary
public
__construct( LanguageCode $languageCode, array $conditions, ProductRepositoryInterface $productRepo, CI_DB_query_builder $db )
ProductListProvider constructor.
public
getByCategoryId( IdType $categoryId )
: ProductListItemCollection
Returns a product list item collection by the provided category ID.
public
getAllPaged( IntType $page = null, IntType $limit = null )
: ProductListItemCollection
Returns a paged list of product items.
protected
_applyLimitAndOffset( IntType $page = null, IntType $limit = null )
:
Applies a LIMIT,OFFSET clause to the currently building query.
protected
_selectWithCategories( void )
: ProductListProvider
Build the select part of the query build and additionally join the products_to_categories table.
protected
_prepareCollection( array $result )
: ProductListItemCollection
Prepares the ProductListItemCollection object.