Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • AdminHttpViewControllers
  • ApiV2Controllers
  • Authentication
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Strategies
  • Category
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • Customer
    • Address
    • Country
    • CountryZone
    • Interfaces
    • Storages
    • Validation
    • ValueObjects
  • Email
    • Collections
    • Entities
    • Exceptions
    • Interfaces
    • Repository
    • ValueObjects
  • Extensions
    • Customers
    • Emails
    • Geschaeftskundenversand
    • Helpers
    • Invoices
    • Orders
    • ParcelShopFinder
    • QuickEdit
    • Serializers
    • Templates
  • Geschaeftskundenversand
    • Exceptions
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • HttpViewControllers
  • InfoBox
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
  • Invoice
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • Modules
    • Collections
    • Controllers
    • Interfaces
  • Order
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
    • ValueObjects
  • OrderStatus
    • Collections
    • Entities
    • Exceptions
    • Factories
    • Interfaces
    • Repositories
  • Precheck
  • Product
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • ProductModule
    • Collections
    • Deleter
    • Entities
    • Factories
    • Interface
    • Interfaces
    • Reader
    • Repositories
    • Writer
  • QuickEdit
    • Interfaces
    • Repositories
  • Shared
    • ClassFinder
    • Exceptions
    • FileSystem
    • Interfaces
    • Storage
    • Types
  • SharedShoppingCart
    • Interfaces
  • Slider
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository
  • VersionInfo
    • Factories
    • Reader
    • ValueObjects

Classes

  • QuickEditProductGraduatedPricesReader
  • QuickEditProductGraduatedPricesRepository
  • QuickEditProductPropertiesReader
  • QuickEditProductPropertiesRepository
  • QuickEditProductPropertiesWriter
  • QuickEditProductSpecialPricesReader
  • QuickEditProductSpecialPricesRepository
  • QuickEditProductSpecialPricesWriter

Class QuickEditProductSpecialPricesRepository

Class QuickEditProductSpecialPricesRepository

QuickEditProductSpecialPricesRepository implements QuickEditProductSpecialPricesRepositoryInterface
Package: QuickEdit\Repositories
Category: System
Located at Services/Core/QuickEdit/Repositories/QuickEditProductSpecialPricesRepository.inc.php

Methods summary

public
# __construct( QuickEditProductSpecialPricesReaderInterface $specialPricesReader, QuickEditProductSpecialPricesWriterInterface $specialPricesWriter )

QuickEditProductSpecialPricesRepository constructor.

QuickEditProductSpecialPricesRepository constructor.

Parameters

$specialPricesReader
Special prices reader.
$specialPricesWriter
Special prices writer.
public array
# getFilteredSpecialPrices( array $productIds, array $filterParameters )

Returns the special prices of the indicated products.

Returns the special prices of the indicated products.

Parameters

$productIds
Array containing the product IDs to be processed.
$filterParameters
Contains filter parameters.

Returns

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

Implementation of

QuickEditProductSpecialPricesRepositoryInterface::getFilteredSpecialPrices()
public integer
# getFilteredSpecialPricesCount( array $productIds, array $filterParameters )

Returns the record number of the filtered special prices.

Returns the record number of the filtered special prices.

Parameters

$productIds
Array containing the product IDs to be processed.
$filterParameters
Contains filter parameters.

Returns

integer
Returns the number of special prices found.

Implementation of

QuickEditProductSpecialPricesRepositoryInterface::getFilteredSpecialPricesCount()
public integer
# getSpecialPricesCount( )

Get special prices record count.

Get special prices record count.

Returns

integer
Returns the number of all special prices found.

Implementation of

QuickEditProductSpecialPricesRepositoryInterface::getSpecialPricesCount()
public boolean
# setSpecialPriceById( array $specialPrice )

Saves the changed data regarding the special price.

Saves the changed data regarding the special price.

Parameters

$specialPrice
Contains the special prices data.

Returns

boolean
Returns the operation result.

Implementation of

QuickEditProductSpecialPricesRepositoryInterface::setSpecialPriceById()
public QuickEditProductSpecialPricesRepository
# paginateSpecialPrices( IntType $start = null, IntType $length = null )

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

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

Parameters

$start
Pagination start index.
$length
Page length value.

Returns

QuickEditProductSpecialPricesRepository

QuickEdit products special price repository for chained method calls.

Implementation of

QuickEditProductSpecialPricesRepositoryInterface::paginateSpecialPrices()
public QuickEditProductSpecialPricesRepository
# sortSpecialPrices( StringType $orderBy = null )

Sets the sorting order of the special prices.

Sets the sorting order of the special prices.

Parameters

$orderBy
Sorting order (ASC or DESC)

Returns

QuickEditProductSpecialPricesRepository

QuickEdit products special price repository for chained method calls.

Implementation of

QuickEditProductSpecialPricesRepositoryInterface::sortSpecialPrices()
protected array
# _collectionContentArray( array $specialPrices )

Returns an array of QuickEditProductSpecialPriceListItem.

Returns an array of QuickEditProductSpecialPriceListItem.

Parameters

$specialPrices
An array containing the data required for a product.

Returns

array
Returns an array of QuickEditProductSpecialPriceListItem or an empty array.

Properties summary

protected IntType $length
#
protected IntType $start
#
protected StringType $orderBy
#
protected QuickEditProductSpecialPricesReaderInterface $specialPriceReader
#
protected QuickEditProductSpecialPricesWriterInterface $specialPriceWriter
#
API documentation generated by ApiGen