Class QuickEditProductSpecialPricesRepository

Class QuickEditProductSpecialPricesRepository

QuickEditProductSpecialPricesRepository implements QuickEditProductSpecialPricesRepositoryInterface

Methods summary

public __construct( QuickEditProductSpecialPricesReaderInterface $specialPricesReader, QuickEditProductSpecialPricesWriterInterface $specialPricesWriter )

QuickEditProductSpecialPricesRepository constructor.

public getFilteredSpecialPrices( array $productIds, array $filterParameters ) : array

Returns the special prices of the indicated products.

public getFilteredSpecialPricesCount( array $productIds, array $filterParameters ) : integer

Returns the record number of the filtered special prices.

public getSpecialPricesCount( void ) : integer

Get special prices record count.

public setSpecialPriceById( array $specialPrice ) : boolean

Saves the changed data regarding the special price.

public paginateSpecialPrices( IntType $start = null, IntType $length = null ) : QuickEditProductSpecialPricesRepository

Sets the starting point of the pagination and the number of special prices.

public sortSpecialPrices( StringType $orderBy = null ) : QuickEditProductSpecialPricesRepository

Sets the sorting order of the special prices.

protected _collectionContentArray( array $specialPrices ) : array

Returns an array of QuickEditProductSpecialPriceListItem.

Properties summary