Class QuickEditService
Class QuickEditService
- QuickEditService implements QuickEditServiceInterface
Methods summary
public
__construct( QuickEditProductGraduatedPricesRepositoryInterface $graduatedPricesRepository, QuickEditProductPropertiesRepositoryInterface $propertiesRepository, QuickEditProductSpecialPricesRepositoryInterface $specialPricesRepository )
QuickEditService constructor.
public
getGraduatedPrices( array $productIds = null )
: array
Returns the graduated prices of a product or an empty array nothing was found.
public
getFilteredProductProperties( array $productIds, array $filterParameters )
: array
Returns filtered product properties based on the provided filter criteria.
public
getFilteredProductPropertiesCount( array $productIds, array $filterParameters )
: integer
Returns products that are subject to the specified filter criteria.
public
getProductPropertiesCount( void )
: integer
Returns the number of all product properties found.
public
paginateProperties( IntType $start = null, IntType $length = null )
: QuickEditProductPropertiesRepository
Sets the starting point of the pagination and the number of products.
public
sortProperties( StringType $orderBy = null )
: QuickEditProductPropertiesRepository
Sets the sorting order of the product properties.
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
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.
public
setSpecialPriceById( array $specialPrice )
: boolean
Saves the changed data regarding the special price.