phpDocumentor

QuickEditProductSpecialPricesRepositoryInterface

Interface QuickEditProductSpecialPricesRepositoryInterface

Tags
category

System

subpackage

Interfaces

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()  : QuickEditProductSpecialPricesRepository
Sets the starting point of the pagination and the number of special prices.
setSpecialPriceById()  : bool
Saves the changed data regarding the special price.
sortSpecialPrices()  : QuickEditProductSpecialPricesRepository
Sets the sorting order of the special prices.

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.

paginateSpecialPrices()

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

public paginateSpecialPrices([IntType|null $start = null ][, IntType|null $length = null ]) : QuickEditProductSpecialPricesRepository
Parameters
$start : IntType|null = null

Pagination start index.

$length : IntType|null = null

Page length value.

Return values
QuickEditProductSpecialPricesRepository

QuickEdit products special price repository for chained method calls.

setSpecialPriceById()

Saves the changed data regarding the special price.

public setSpecialPriceById(array<string|int, mixed> $specialPrice) : bool
Parameters
$specialPrice : array<string|int, mixed>

Contains the special prices data.

Return values
bool

Returns the operation result.

Search results