Class QuickEditProductPropertiesWriter
Class QuickEditProductPropertiesWriter
-
QuickEditProductPropertiesWriter
implements
QuickEditProductPropertiesWriterInterface
Methods summary
public
__construct( CI_DB_query_builder $db, QuickEditPropertiesOverviewColumns $quickEditPropertiesOverviewColumns )
QuickEditProductPropertiesWriter constructor.
QuickEditProductPropertiesWriter constructor.
Parameters
$db
- Database query builder instance.
$quickEditPropertiesOverviewColumns
QuickEdit properties overview
columns.
public
setByCombisId( array $productCombi )
: boolean
Saves product by product-combi ID.
Saves product by product-combi ID.
Parameters
$productCombi
- Contains product data to be saved.
Returns
boolean
Returns the operation result.
Implementation of
protected
_setTaxRate( void )
Sets the tax rate of a product.
Sets the tax rate of a product.
protected
_collectUpdateData( array $items )
: array
Returns the updated data of a product.
Returns the updated data of a product.
Parameters
Returns
array
Returns the updated data of a product is an array.
protected
_calculatePrice( string $value, string $column )
: float|integer
Calculate the price of the value.
Calculate the price of the value.
Parameters
$value
- Value.
$column
- Column of the table.
Returns
float|integer
Price of the product.
protected
_calculateUnit( string $value, string $column )
: mixed
Calculates the unit of the value.
Calculates the unit of the value.
Parameters
$value
- Value.
$column
- Column of the table.
Returns
mixed
protected
_editableColumns( void )
: array
Returns the editable columns for the product.
Returns the editable columns for the product.
Returns
array
Returns the editable columns for the product is an array.
protected
_delegateFilterToColumn( void )
: array
Returns the required columns for the overview of the properties.
Returns the required columns for the overview of the properties.
Returns
array
Returns an array of the required columns for the overview of the properties.
Properties summary
protected
$db
: CI_DB_query_builder