Class QuickEditProductSpecialPricesWriter
| category |
System |
|---|---|
| package |
QuickEdit |
| subpackage |
Repositories |
__construct(\CI_DB_query_builder $db, \QuickEditSpecialPricesOverviewColumns $quickEditSpecialPricesOverviewColumns)
\CI_DB_query_builderDatabase query builder instance.
\QuickEditSpecialPricesOverviewColumnsQuickEdit properties overview columns.
_calculatePrice(string $value, string $column) : float|integer
stringValue.
stringColumn of the table.
float|integerReturns the calculated unit of the price.
_calculateUnit(string $value, string $column) : mixed
stringValue.
stringColumn of the table.
mixedReturns the calculated unit of the value.
_collectUpdateData(array $items) : array
arrayItems.
arrayReturns the updated data of a product is an array.
_delegateFilterToColumn() : array
arrayReturns an array of the required columns for the overview of the properties.
_editableColumns() : array
arrayReturns the editable columns for the product is an array.
_setSpecialPriceExpirationDate(string $expirationDate) : string
stringExpiration date string.
stringReturns the special price expires date in the specified format.
_setTaxRate()
setSpecialPriceById(array $specialPrice) : boolean
arrayContains the special prices data.
booleanReturns the operation result.
db : \CI_DB_query_builder
| var |
|---|
\CI_DB_query_builder
productIds : array
| var |
|---|
array
taxRate : float
| var |
|---|
float
quickEditSpecialPricesOverviewColumns : \QuickEditSpecialPricesOverviewColumns