ProductListProviderInterface

Extends

Interface ProductListProviderInterface

category

System

package

Product

subpackage

Interfaces

Methods

Returns all product list items.

getAll() : \ProductListItemCollection

Returns a paged list of product items.

getAllPaged(\Pager|null $pager = null, array $sorters = array()) : \ProductListItemCollection

Arguments

$pager

\Pager|null

(Optional) Pager object with pagination information

$sorters

array

(Optional) array of Sorter objects with data sorting information

Response

\ProductListItemCollection

Returns a product list item collection by the provided category ID.

getByCategoryId(\IdType $categoryId) : \ProductListItemCollection

Arguments

$categoryId

\IdType

Category ID.

Response

\ProductListItemCollection

Filters products records by a given ProductSearchCondition object and returns an array with results.

searchProducts(\ProductSearchCondition $condition, \Pager|null $pager = null, array $sorters = array()) : \ProductListItemCollection

Arguments

$condition

\ProductSearchCondition

Conditions object for search.

$pager

\Pager|null

(Optional) Pager object with pagination information

$sorters

array

(Optional) array of Sorter objects with data sorting information

Response

\ProductListItemCollection

Count the total of filtered products.

searchProductsCount(\ProductSearchCondition $condition) : \IntType

Arguments

$condition

\ProductSearchCondition

Conditions object for search.

Response

\IntType