FeaturedProductReader

Implements \FeaturedProductReaderInterface

Class FeaturedProductReader

package

Default

Methods

FeaturedProductReader constructor.

__construct(\CI_DB_query_builder $queryBuilder, \BoolType $isCustomerGroupCheckActive) 

Arguments

$queryBuilder

\CI_DB_query_builder

$isCustomerGroupCheckActive

\BoolType

Get new products

getNewProducts(\FeaturedProductSettings $settings) : \FeaturedProductCollection

Get offers

getOfferedProducts(\FeaturedProductSettings $settings) : \FeaturedProductCollection
Throws
\FeaturedProductNotFoundException

Arguments

Response

\FeaturedProductCollection

get products by category id.

getProductsByCategoryId(\FeaturedProductSettings $settings, \IntType $categoryId) : \FeaturedProductCollection

Arguments

$categoryId

\IntType

Response

\FeaturedProductCollection

Get top products

getTopProducts(\FeaturedProductSettings $settings) : \FeaturedProductCollection
Throws
\FeaturedProductNotFoundException

Arguments

Response

\FeaturedProductCollection

Get upcoming products

getUpcomingProducts(\FeaturedProductSettings $settings) : \FeaturedProductCollection

Properties

CodeIgniter QueryBuilder

queryBuilder : \CI_DB_query_builder
var

Type(s)

\CI_DB_query_builder

Whether customer group check is active

isCustomerGroupCheckActive : boolean
var

Type(s)

boolean