QuickEditProductGraduatedPricesReader
in package
implements
QuickEditProductGraduatedPricesReaderInterface
Class QuickEditProductGraduatedPricesReader
Tags
Interfaces, Classes and Traits
- QuickEditProductGraduatedPricesReaderInterface
- Interface QuickEditProductsGraduationsReaderInterface
Table of Contents
- $db : CI_DB_query_builder
- __construct() : mixed
- QuickEditProductGraduatedPricesReader constructor.
- getGraduatedPrices() : array<string|int, mixed>
- Returns the graduated prices of a product or an empty array nothing was found.
- _getCustomerStatuses() : array<string|int, mixed>
- Returns the names of the existing customer groups.
- _getPersonalOffersByProductId() : array<string|int, mixed>
- Provides customer-specific product offers.
- _getTaxRateByProductId() : array<string|int, mixed>
- Returns the tax rate for the specified product.
Properties
$db
protected
CI_DB_query_builder
$db
Methods
__construct()
QuickEditProductGraduatedPricesReader constructor.
public
__construct(CI_DB_query_builder $db) : mixed
Parameters
- $db : CI_DB_query_builder
-
Database query builder instance.
Return values
mixed —getGraduatedPrices()
Returns the graduated prices of a product or an empty array nothing was found.
public
getGraduatedPrices([array<string|int, mixed>|null $productIds = null ]) : array<string|int, mixed>
Parameters
- $productIds : array<string|int, mixed>|null = null
-
Array containing the selected product IDs to be processed.
Return values
array<string|int, mixed> —Returns array that contains the graduated prices information.
_getCustomerStatuses()
Returns the names of the existing customer groups.
protected
_getCustomerStatuses() : array<string|int, mixed>
Return values
array<string|int, mixed> —Returns the customer status info or an empty array if nothing was found.
_getPersonalOffersByProductId()
Provides customer-specific product offers.
protected
_getPersonalOffersByProductId([int|null $productId = null ]) : array<string|int, mixed>
Parameters
- $productId : int|null = null
-
Optional, product ID to be processed.
Return values
array<string|int, mixed> —Returns the graduated prices or an empty array if nothing was found.
_getTaxRateByProductId()
Returns the tax rate for the specified product.
protected
_getTaxRateByProductId(int $productId) : array<string|int, mixed>
Parameters
- $productId : int
-
Product ID to be processed.
Return values
array<string|int, mixed> —Returns an object that contains the product tax rate.