Class QuickEditProductPropertiesWriter

Class QuickEditProductPropertiesWriter

QuickEditProductPropertiesWriter implements QuickEditProductPropertiesWriterInterface

Methods summary

public __construct( CI_DB_query_builder $db, QuickEditPropertiesOverviewColumns $quickEditPropertiesOverviewColumns )

QuickEditProductPropertiesWriter constructor.

public setByCombisId( array $productCombi ) : boolean

Saves product by product-combi ID.

protected _setTaxRate( void )

Sets the tax rate of a product.

protected _collectUpdateData( array $items ) : array

Returns the updated data of a product.

protected _calculatePrice( string $value, string $column ) : float|integer

Calculate the price of the value.

protected _calculateUnit( string $value, string $column ) : mixed

Calculates the unit of the value.

protected _editableColumns( void ) : array

Returns the editable columns for the product.

protected _delegateFilterToColumn( void ) : array

Returns the required columns for the overview of the properties.

Properties summary

protected $db : CI_DB_query_builder

		
protected $combiId : integer

		
protected $taxRate : float