QuickEditProductSpecialPricesReaderInterface
in
Interface QuickEditProductSpecialPricesReaderInterface
Tags
Table of Contents
- getFilteredSpecialPrices() : array<string|int, mixed>
- Returns the special prices of the indicated products.
- getFilteredSpecialPricesCount() : int
- Returns the record number of the filtered special prices.
- getSpecialPricesCount() : int
- Get special prices record count.
- paginateSpecialPrices() : QuickEditProductSpecialPricesReaderInterface
- Sets the starting point of the pagination and the number of products.
- sortSpecialPrices() : QuickEditProductSpecialPricesReaderInterface
- Sets the sorting order of the products
Methods
getFilteredSpecialPrices()
Returns the special prices of the indicated products.
public
getFilteredSpecialPrices(array<string|int, mixed> $productIds, array<string|int, mixed> $filterParameters) : array<string|int, mixed>
Parameters
- $productIds : array<string|int, mixed>
-
Array containing the product IDs to be processed.
- $filterParameters : array<string|int, mixed>
-
Contains filter parameters.
Return values
array<string|int, mixed> —Returns the query result as a pure array, or an empty array when no result is produced.
getFilteredSpecialPricesCount()
Returns the record number of the filtered special prices.
public
getFilteredSpecialPricesCount(array<string|int, mixed> $productIds, array<string|int, mixed> $filterParameters) : int
Parameters
- $productIds : array<string|int, mixed>
-
Array containing the product IDs to be processed.
- $filterParameters : array<string|int, mixed>
-
Contains filter parameters.
Return values
int —Returns the number of special prices found.
getSpecialPricesCount()
Get special prices record count.
public
getSpecialPricesCount() : int
Return values
int —Returns the number of all special prices found.
paginateSpecialPrices()
Sets the starting point of the pagination and the number of products.
public
paginateSpecialPrices([IntType|null $start = null ][, IntType|null $length = null ]) : QuickEditProductSpecialPricesReaderInterface
Parameters
Return values
QuickEditProductSpecialPricesReaderInterface —Returns same instance for chained method calls.
sortSpecialPrices()
Sets the sorting order of the products
public
sortSpecialPrices([StringType|null $orderBy = null ]) : QuickEditProductSpecialPricesReaderInterface
Parameters
- $orderBy : StringType|null = null
-
Sorting order (ASC or DESC)
Return values
QuickEditProductSpecialPricesReaderInterface —Returns same instance for chained method calls.