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 OrderRepository

Class OrderRepository

OrderRepository implements OrderRepositoryInterface
Package: Order\Repositories
Category: System
Located at CoreServices/Order/Repositories/OrderRepository.inc.php

Methods summary

public
# __construct( OrderFactoryInterface $orderFactory, OrderRepositoryWriterInterface $writer, OrderRepositoryReaderInterface $reader, OrderRepositoryDeleterInterface $deleter, OrderItemRepositoryInterface $orderItemRepository, OrderTotalRepositoryInterface $orderTotalRepository, OrderStatusHistoryReaderInterface $historyReader, AddonValueServiceInterface $addonValueService )

OrderRepository constructor.

OrderRepository constructor.

Parameters

$orderFactory
Factory to create order objects.
$writer
Order repository writer.
$reader
Order repository reader.
$deleter
Order repository deleter.
$orderItemRepository
Repository for order items.
$orderTotalRepository
Repository for order totals.
$historyReader
Reader for order status history items.
$addonValueService

AddonValueService to handle the order addon values.

public GXEngineOrder
# createNew( )

Creates a new order with no values in the database and returns it containing just the ID.

Creates a new order with no values in the database and returns it containing just the ID.

Returns

GXEngineOrder
Crated order.

Implementation of

OrderRepositoryInterface::createNew()
public OrderRepository
# store( OrderInterface $order )

Saves an Order to the database.

Saves an Order to the database.

Parameters

$order
Stored order.

Returns

OrderRepository
Same instance for method chaining.

Implementation of

OrderRepositoryInterface::store()
public GXEngineOrder
# getById( IdType $orderId )

Returns an order by given ID.

Returns an order by given ID.

Parameters

$orderId
Order ID.

Returns

GXEngineOrder
Fetched order.

Implementation of

OrderRepositoryInterface::getById()
public OrderRepository
# deleteById( IdType $orderId )

Deletes an order by the ID.

Deletes an order by the ID.

Parameters

$orderId
Order ID.

Returns

OrderRepository
Same instance for method chaining.

Implementation of

OrderRepositoryInterface::deleteById()

Properties summary

protected OrderFactoryInterface $orderFactory

Order factory.

Order factory.

#
protected AddonValueServiceInterface $addonValueService

Addon value service.

Addon value service.

#
protected OrderRepositoryWriterInterface $writer

Order repository writer.

Order repository writer.

#
protected OrderRepositoryReaderInterface $reader

Order repository reader.

Order repository reader.

#
protected OrderRepositoryDeleterInterface $deleter

Order repository deleter.

Order repository deleter.

#
protected OrderItemRepositoryInterface $orderItemRepository

Order item repository.

Order item repository.

#
protected OrderTotalRepositoryInterface $orderTotalRepository

Order total repository.

Order total repository.

#
protected OrderStatusHistoryStorage $orderStatusHistoryReader

Order status history reader.

Order status history reader.

#
API documentation generated by ApiGen