Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • AdminHttpViewControllers
  • ApiV2Controllers
  • Authentication
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Strategies
  • Category
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • Customer
    • Address
    • Country
    • CountryZone
    • Interfaces
    • Storages
    • Validation
    • ValueObjects
  • Email
    • Collections
    • Entities
    • Exceptions
    • Interfaces
    • Repository
    • ValueObjects
  • Extensions
    • Customers
    • Emails
    • Geschaeftskundenversand
    • Helpers
    • Invoices
    • Orders
    • ParcelShopFinder
    • QuickEdit
    • Serializers
    • Templates
  • Geschaeftskundenversand
    • Exceptions
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • HttpViewControllers
  • InfoBox
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
  • Invoice
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • Modules
    • Collections
    • Controllers
    • Interfaces
  • Order
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
    • ValueObjects
  • OrderStatus
    • Collections
    • Entities
    • Exceptions
    • Factories
    • Interfaces
    • Repositories
  • Precheck
  • Product
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • ProductModule
    • Collections
    • Deleter
    • Entities
    • Factories
    • Interface
    • Interfaces
    • Reader
    • Repositories
    • Writer
  • QuickEdit
    • Interfaces
    • Repositories
  • Shared
    • ClassFinder
    • Exceptions
    • FileSystem
    • Interfaces
    • Storage
    • Types
  • SharedShoppingCart
    • Interfaces
  • Slider
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository
  • VersionInfo
    • Factories
    • Reader
    • ValueObjects

Classes

  • QuickEditProductGraduatedPricesReader
  • QuickEditProductGraduatedPricesRepository
  • QuickEditProductPropertiesReader
  • QuickEditProductPropertiesRepository
  • QuickEditProductPropertiesWriter
  • QuickEditProductSpecialPricesReader
  • QuickEditProductSpecialPricesRepository
  • QuickEditProductSpecialPricesWriter

Class QuickEditProductSpecialPricesWriter

Class QuickEditProductSpecialPricesWriter

QuickEditProductSpecialPricesWriter implements QuickEditProductSpecialPricesWriterInterface
Package: QuickEdit\Repositories
Category: System
Located at Services/Core/QuickEdit/Repositories/Writer/QuickEditProductSpecialPricesWriter.inc.php

Methods summary

public
# __construct( CI_DB_query_builder $db, QuickEditSpecialPricesOverviewColumns $quickEditSpecialPricesOverviewColumns )

QuickEditProductsSpecialPriceWriter constructor.

QuickEditProductsSpecialPriceWriter constructor.

Parameters

$db

Database query builder instance.

$quickEditSpecialPricesOverviewColumns

QuickEdit properties overview columns.

public boolean
# setSpecialPriceById( array $specialPrice )

Saves the changed data regarding the special price.

Saves the changed data regarding the special price.

Parameters

$specialPrice
Contains the special prices data.

Returns

boolean
Returns the operation result.

Implementation of

QuickEditProductSpecialPricesWriterInterface::setSpecialPriceById()
protected
# _setTaxRate( )

Sets the tax rate of a product.

Sets the tax rate of a product.

protected array
# _collectUpdateData( array $items )

Returns the updated data of a product.

Returns the updated data of a product.

Parameters

$items
Items.

Returns

array
Returns the updated data of a product is an array.
protected float|integer
# _calculatePrice( string $value, string $column )

Calculate the price of the value.

Calculate the price of the value.

Parameters

$value
Value.
$column
Column of the table.

Returns

float|integer
Returns the calculated unit of the price.
protected mixed
# _calculateUnit( string $value, string $column )

Calculates the unit of the value.

Calculates the unit of the value.

Parameters

$value
Value.
$column
Column of the table.

Returns

mixed
Returns the calculated unit of the value.
protected string
# _setSpecialPriceExpirationDate( string $expirationDate )

Sets the special price expires date.

Sets the special price expires date.

Parameters

$expirationDate
Expiration date string.

Returns

string
Returns the special price expires date in the specified format.
protected array
# _editableColumns( )

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 array
# _delegateFilterToColumn( )

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 CI_DB_query_builder $db
#
protected array $productIds
#
protected float $taxRate
#
protected QuickEditSpecialPricesOverviewColumns $quickEditSpecialPricesOverviewColumns
#
API documentation generated by ApiGen