Class QuickEditProductSpecialPricesWriter
category |
System |
---|---|
package |
QuickEdit |
subpackage |
Repositories |
__construct(\CI_DB_query_builder $db, \QuickEditSpecialPricesOverviewColumns $quickEditSpecialPricesOverviewColumns)
\CI_DB_query_builder
Database query builder instance.
\QuickEditSpecialPricesOverviewColumns
QuickEdit properties overview columns.
_calculatePrice(string $value, string $column) : float|integer
string
Value.
string
Column of the table.
float|integer
Returns the calculated unit of the price.
_calculateUnit(string $value, string $column) : mixed
string
Value.
string
Column of the table.
mixed
Returns the calculated unit of the value.
_collectUpdateData(array $items) : array
array
Items.
array
Returns the updated data of a product is an array.
_delegateFilterToColumn() : array
array
Returns an array of the required columns for the overview of the properties.
_editableColumns() : array
array
Returns the editable columns for the product is an array.
_setSpecialPriceExpirationDate(string $expirationDate) : string
string
Expiration date string.
string
Returns the special price expires date in the specified format.
_setTaxRate()
setSpecialPriceById(array $specialPrice) : boolean
array
Contains the special prices data.
boolean
Returns the operation result.
db : \CI_DB_query_builder
var |
---|
\CI_DB_query_builder
productIds : array
var |
---|
array
taxRate : float
var |
---|
float
quickEditSpecialPricesOverviewColumns : \QuickEditSpecialPricesOverviewColumns