QuickEditProductSpecialPricesRepository

Implements \QuickEditProductSpecialPricesRepositoryInterface

Class QuickEditProductSpecialPricesRepository

category

System

package

QuickEdit

subpackage

Repositories

Methods

QuickEditProductSpecialPricesRepository constructor.

__construct(\QuickEditProductSpecialPricesReaderInterface $specialPricesReader, \QuickEditProductSpecialPricesWriterInterface $specialPricesWriter) 

Arguments

$specialPricesReader

\QuickEditProductSpecialPricesReaderInterface

Special prices reader.

$specialPricesWriter

\QuickEditProductSpecialPricesWriterInterface

Special prices writer.

Returns an array of QuickEditProductSpecialPriceListItem.

_collectionContentArray(array $specialPrices) : array

Arguments

$specialPrices

array

An array containing the data required for a product.

Response

array

Returns an array of QuickEditProductSpecialPriceListItem or an empty array.

Returns the special prices of the indicated products.

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

Arguments

$productIds

array

Array containing the product IDs to be processed.

$filterParameters

array

Contains filter parameters.

Response

array

Returns the query result as a pure array, or an empty array when no result is produced.

Returns the record number of the filtered special prices.

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

Arguments

$productIds

array

Array containing the product IDs to be processed.

$filterParameters

array

Contains filter parameters.

Response

integer

Returns the number of special prices found.

Get special prices record count.

getSpecialPricesCount() : integer

Response

integer

Returns the number of all special prices found.

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

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

Arguments

$start

\IntType|null

Pagination start index.

$length

\IntType|null

Page length value.

Response

\QuickEditProductSpecialPricesRepository

QuickEdit products special price repository for chained method calls.

Saves the changed data regarding the special price.

setSpecialPriceById(array $specialPrice) : boolean

Arguments

$specialPrice

array

Contains the special prices data.

Response

boolean

Returns the operation result.

Sets the sorting order of the special prices.

sortSpecialPrices(\StringType|null $orderBy = null) : \QuickEditProductSpecialPricesRepository

Arguments

$orderBy

\StringType|null

Sorting order (ASC or DESC)

Response

\QuickEditProductSpecialPricesRepository

QuickEdit products special price repository for chained method calls.

Properties

length

length : \IntType
var

Type(s)

\IntType

start

start : \IntType
var

Type(s)

\IntType

orderBy

orderBy : \StringType
var

Type(s)

\StringType

specialPriceReader

specialPriceReader : \QuickEditProductSpecialPricesReaderInterface

specialPriceWriter

specialPriceWriter : \QuickEditProductSpecialPricesWriterInterface