Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • AdminAccess
    • Collections
    • Deleters
    • Entities
    • Exceptions
    • Factories
    • Interfaces
    • Managers
    • Readers
    • Writers
  • AdminHttpViewControllers
  • ApiV2Controllers
  • Authentication
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Strategies
  • Category
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • Customer
    • Address
    • Country
    • CountryZone
    • Interfaces
    • Storages
    • Validation
    • ValueObjects
  • CustomerGroup
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Serializers
    • Services
    • 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
  • Manufacturer
    • Entities
    • Factories
    • Interfaces
    • Repositories
  • Modules
    • Collections
    • Controllers
    • Interfaces
  • None
  • 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
  • QuantityUnit
    • Entities
    • Factories
    • Repositories
  • QuickEdit
    • Interfaces
    • Repositories
  • Review
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Services
    • ValueObjects
  • Shared
    • ClassFinder
    • Exceptions
    • FileSystem
    • Interfaces
    • Storage
    • Types
  • SharedShoppingCart
    • Interfaces
  • Slider
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
  • Smarty
    • plugins
  • StaticSeoUrl
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
  • StaticSeoUrls
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository
  • VersionInfo
    • Factories
    • Reader
    • ValueObjects
  • VPE
    • Entities
    • Factories
    • Repositories
  • Withdrawal
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Services
    • ValueObjects

Classes

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

Class OrderRepositoryReader

Class OrderRepositoryReader

OrderRepositoryReader implements OrderRepositoryReaderInterface
Package: Order\Repositories
Category: System
Located at Services/Core/Order/Repositories/Reader/OrderRepositoryReader.inc.php

Methods summary

public
# __construct( CI_DB_query_builder $db, OrderFactoryInterface $orderFactory, CountryServiceInterface $countryService, PaymentTitleProvider $paymentTitleProvider )

OrderRepositoryReader constructor.

OrderRepositoryReader constructor.

Parameters

$db
Query builder.
$orderFactory
Order factory.
$countryService
Country service.
$paymentTitleProvider
Payment title provider.
public GXEngineOrder
# getById( IdType $orderId )

Fetches an new order object from the orders table by the given ID.

Fetches an new order object from the orders table by the given ID.

Parameters

$orderId
ID of the expected order.

Returns

GXEngineOrder
Fetched order.

Throws

UnexpectedValueException
If no entry has been found.

Implementation of

OrderRepositoryReaderInterface::getById()
protected GXEngineOrder
# _createOrderByArray( array $data )

Creates an order instance.

Creates an order instance.

Parameters

$data
Order data.

Returns

GXEngineOrder
Created order object.
protected AddressBlock
# _getOrderAddressBlock( array $data, StringType $prefix )

Returns order address block instance for the customer, billing and delivery address.

Returns order address block instance for the customer, billing and delivery address.

Parameters

$data
Contains the order data that came directly from the database.
$prefix
Must be one of "customers", "billing" and "delivery" (look at the "orders" db table).

Returns

AddressBlock
Instance of an address block that contains the address values.
protected OrderPaymentType
# _createOrderPaymentType( array $row )

Creates and returns an order payment type instance by the given row data.

Creates and returns an order payment type instance by the given row data.

Parameters

$row
Row array with data about the order type.

Returns

OrderPaymentType

Throws

InvalidArgumentException

Properties summary

protected CI_DB_query_builder $db

Query builder.

Query builder.

#
protected OrderFactory $orderFactory

Order factory.

Order factory.

#
protected CountryServiceInterface $countryService

Country service.

Country service.

#
protected PaymentTitleProvider $paymentTitleProvider
#
API documentation generated by ApiGen