QuickEditProductPropertiesRepository

Implements \QuickEditProductPropertiesRepositoryInterface

Class QuickEditProductPropertiesRepository

category

System

package

QuickEdit

subpackage

Repositories

Methods

QuickEditProductPropertiesRepository constructor.

__construct(\QuickEditProductPropertiesReaderInterface|null $reader = null, \QuickEditProductPropertiesWriterInterface|null $writer = null) 

Arguments

$reader

\QuickEditProductPropertiesReaderInterface|null

Products properties reader.

$writer

\QuickEditProductPropertiesWriterInterface|null

Products properties writer.

Returns an array of QuickEditProductPropertiesListItem.

_collectionContentArray(array $properties) : array

Arguments

$properties

array

Array containing property information.

Response

array

Returns an array of QuickEditProductPropertiesListItem or an empty array.

Returns product properties based on the provided filter criteria.

getFilteredProductProperties(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 products that are subject to the specified filter criteria.

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

Arguments

$productIds

array

Array containing the selected product IDs to be processed.

$filterParameters

array

Contains the filter parameters.

Response

integer

Returns the number of product properties found.

Returns the number of all product properties found.

getProductPropertiesCount() : integer

Response

integer

Returns the record number.

Sets the starting point of the pagination and the number of products.

paginateProperties(\IntType|null $start = null, \IntType|null $length = null) : \QuickEditProductPropertiesRepository

Arguments

$start

\IntType|null

Pagination start index.

$length

\IntType|null

Page length value.

Response

\QuickEditProductPropertiesRepository

QuickEdit products properties repository for chained method calls.

Saves product by product-combi ID.

setByCombisId(array $productCombi) : boolean

Arguments

$productCombi

array

Contains product data to be saved.

Response

boolean

Returns the operation result.

Sets the sorting order of the product properties.

sortProperties(\StringType|null $orderBy = null) : \QuickEditProductPropertiesRepository

Arguments

$orderBy

\StringType|null

Sorting order (ASC or DESC).

Response

\QuickEditProductPropertiesRepository

QuickEdit products properties 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

reader

reader : \QuickEditProductPropertiesReaderInterface

writer

writer : \QuickEditProductPropertiesWriterInterface