QuickEditProductPropertiesWriter

Implements \QuickEditProductPropertiesWriterInterface

Class QuickEditProductPropertiesWriter

category

System

package

QuickEdit

subpackage

Repositories

Methods

QuickEditProductPropertiesWriter constructor.

__construct(\CI_DB_query_builder $db, \QuickEditPropertiesOverviewColumns $quickEditPropertiesOverviewColumns) 

Arguments

$db

\CI_DB_query_builder

Database query builder instance.

$quickEditPropertiesOverviewColumns

\QuickEditPropertiesOverviewColumns

QuickEdit properties overview columns.

Calculate the price of the value.

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

Arguments

$value

string

Value.

$column

string

Column of the table.

Response

float|integer

Price of the product.

Calculates the unit of the value.

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

Arguments

$value

string

Value.

$column

string

Column of the table.

Response

mixed

Returns the updated data of a product.

_collectUpdateData(array $items) : array

Arguments

$items

array

Items.

Response

array

Returns the updated data of a product is an array.

Returns the required columns for the overview of the properties.

_delegateFilterToColumn() : array

Response

array

Returns an array of the required columns for the overview of the properties.

Returns the editable columns for the product.

_editableColumns() : array

Response

array

Returns the editable columns for the product is an array.

Sets the tax rate of a product.

_setTaxRate() 

Saves product by product-combi ID.

setByCombisId(array $productCombi) : boolean

Arguments

$productCombi

array

Contains product data to be saved.

Response

boolean

Returns the operation result.

Properties

db

db : \CI_DB_query_builder
var

Type(s)

\CI_DB_query_builder

combiId

combiId : integer
var

Type(s)

integer

taxRate

taxRate : float
var

Type(s)

float

quickEditPropertiesOverviewColumns

quickEditPropertiesOverviewColumns : \QuickEditPropertiesOverviewColumns