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 OrderRepositoryReader

Class OrderRepositoryReader

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

Methods summary

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

OrderRepositoryReader constructor.

OrderRepositoryReader constructor.

Parameters

$db
Query builder.
$orderFactory
Order factory.
$countryService
Country service.
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.

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.

#
API documentation generated by ApiGen