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 OrderTotalRepositoryReader

Class OrderTotalRepositoryReader

OrderTotalRepositoryReader implements OrderTotalRepositoryReaderInterface
Package: Order\Repositories
Category: System
Located at CoreServices/Order/Repositories/Reader/OrderTotalRepositoryReader.inc.php

Methods summary

public
# __construct( CI_DB_query_builder $db, OrderTotalFactoryInterface $orderTotalFactory )

OrderTotalRepositoryReader constructor.

OrderTotalRepositoryReader constructor.

Parameters

$db
Query builder.
$orderTotalFactory
Order total factory.
public StoredOrderTotal
# getTotalById( IdType $orderTotalId )

Returns an StoredOrderTotal object by the given ID.

Returns an StoredOrderTotal object by the given ID.

Parameters

$orderTotalId
ID of order total item.

Returns

StoredOrderTotal
Fetched order total.

Throws

UnexpectedValueException
If record does not exist.

Implementation of

OrderTotalRepositoryReaderInterface::getTotalById()
public StoredOrderTotalCollection
# getTotalsByOrderId( IdType $orderOrderId )

Returns a StoredOrderTotalCollection of StoredOrderTotal objects by the given order ID.

Returns a StoredOrderTotalCollection of StoredOrderTotal objects by the given order ID.

Parameters

$orderOrderId
ID of order item.

Returns

StoredOrderTotalCollection
Fetched order total collection.

Throws

UnexpectedValueException
If record does not exist.

Implementation of

OrderTotalRepositoryReaderInterface::getTotalsByOrderId()
protected StoredOrderTotal
# _createStoredOrderTotalItem( array $storedOrderTotalData )

Creates a StoredOrderTotal instance based on the given result set array.

Creates a StoredOrderTotal instance based on the given result set array.

Parameters

$storedOrderTotalData
Result set from database.

Returns

StoredOrderTotal
Created order total.

Properties summary

protected OrderTotalFactory $orderTotalFactory

Order total factory.

Order total factory.

#
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