Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • ApiV2Controllers
  • Category
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • Customer
    • Address
    • Country
    • CountryZone
    • Interfaces
    • Validation
    • ValueObjects
  • Email
    • Collections
    • Entities
    • Exceptions
    • Interfaces
    • Repository
    • ValueObjects
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • None
  • Order
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
    • ValueObjects
  • Product
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • ProductModule
    • Collections
    • Deleter
    • Entities
    • Factories
    • Interface
    • Interfaces
    • Reader
    • Repositories
    • Writer
  • Shared
    • Exceptions
    • FileSystem
    • Interfaces
    • Storage
    • Types
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository

Classes

  • OrderItemAttributeRepository
  • OrderItemAttributeRepositoryDeleter
  • OrderItemAttributeRepositoryReader
  • OrderItemAttributeRepositoryWriter
  • OrderItemPropertyRepository
  • OrderItemPropertyRepositoryDeleter
  • OrderItemPropertyRepositoryReader
  • OrderItemPropertyRepositoryWriter
  • OrderItemRepository
  • OrderItemRepositoryDeleter
  • OrderItemRepositoryReader
  • OrderItemRepositoryWriter
  • OrderRepository
  • OrderRepositoryDeleter
  • OrderRepositoryReader
  • OrderRepositoryWriter
  • OrderTotalRepository
  • OrderTotalRepositoryDeleter
  • OrderTotalRepositoryReader
  • OrderTotalRepositoryWriter

Class OrderTotalRepositoryWriter

Class OrderTotalRepositoryWriter

OrderTotalRepositoryWriter implements OrderTotalRepositoryWriterInterface
Package: Order\Repositories
Category: System
Located at CoreServices/Order/Repositories/Writer/OrderTotalRepositoryWriter.inc.php

Methods summary

public
# __construct( CI_DB_query_builder $dbQueryBuilder )

OrderTotalRepositoryWriter constructor.

OrderTotalRepositoryWriter constructor.

Parameters

$dbQueryBuilder
Query builder.
public integer
# insertIntoOrder( IdType $orderId, OrderTotalInterface $orderTotal )

Inserts an order total item to an order by the given order ID.

Inserts an order total item to an order by the given order ID.

Parameters

$orderId
ID of the order.
$orderTotal
Order total item to insert.

Returns

integer
ID of stored order total item.

Implementation of

OrderTotalRepositoryWriterInterface::insertIntoOrder()
public OrderTotalRepositoryWriter
# update( StoredOrderTotalInterface $orderTotal )

Updates the passed order total item.

Updates the passed order total item.

Parameters

$orderTotal
Order total item to update.

Returns

OrderTotalRepositoryWriter
Same instance for method chaining.

Implementation of

OrderTotalRepositoryWriterInterface::update()

Properties summary

protected CI_DB_query_builder $db

Query builder.

Query builder.

#
protected string $table

Table.

Table.

# 'orders_total'
protected string $key

ID column.

ID column.

# 'orders_total_id'
API documentation generated by ApiGen