phpDocumentor

QuickEditProductPropertiesWriter
in package
implements QuickEditProductPropertiesWriterInterface

Class QuickEditProductPropertiesWriter

Tags
category

System

subpackage

Repositories

Interfaces, Classes and Traits

QuickEditProductPropertiesWriterInterface
Interface QuickEditProductPropertiesWriterInterface

Table of Contents

$combiId  : int
$db  : CI_DB_query_builder
$quickEditPropertiesOverviewColumns  : QuickEditPropertiesOverviewColumns
$taxRate  : float
__construct()  : mixed
QuickEditProductPropertiesWriter constructor.
setByCombisId()  : bool
Saves product by product-combi ID.
_calculatePrice()  : float|int
Calculate the price of the value.
_calculateUnit()  : mixed
Calculates the unit of the value.
_collectUpdateData()  : array<string|int, mixed>
Returns the updated data of a product.
_delegateFilterToColumn()  : array<string|int, mixed>
Returns the required columns for the overview of the properties.
_editableColumns()  : array<string|int, mixed>
Returns the editable columns for the product.
_setTaxRate()  : mixed
Sets the tax rate of a product.

Properties

Methods

setByCombisId()

Saves product by product-combi ID.

public setByCombisId(array<string|int, mixed> $productCombi) : bool
Parameters
$productCombi : array<string|int, mixed>

Contains product data to be saved.

Return values
bool

Returns the operation result.

_calculatePrice()

Calculate the price of the value.

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

Value.

$column : string

Column of the table.

Return values
float|int

Price of the product.

_calculateUnit()

Calculates the unit of the value.

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

Value.

$column : string

Column of the table.

Return values
mixed

_collectUpdateData()

Returns the updated data of a product.

protected _collectUpdateData(array<string|int, mixed> $items) : array<string|int, mixed>
Parameters
$items : array<string|int, mixed>

Items.

Return values
array<string|int, mixed>

Returns the updated data of a product is an array.

_delegateFilterToColumn()

Returns the required columns for the overview of the properties.

protected _delegateFilterToColumn() : array<string|int, mixed>
Return values
array<string|int, mixed>

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

_editableColumns()

Returns the editable columns for the product.

protected _editableColumns() : array<string|int, mixed>
Return values
array<string|int, mixed>

Returns the editable columns for the product is an array.

Search results