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 OrderItemRepository

Class OrderItemRepository

OrderItemRepository implements OrderItemRepositoryInterface
Package: Order\Repositories
Category: System
Located at CoreServices/Order/Repositories/OrderItemRepository.inc.php

Methods summary

public
# __construct( OrderItemAttributeRepositoryFactoryInterface $orderItemAttributeRepositoryFactory, OrderItemRepositoryReaderInterface $orderItemRepositoryReader, OrderItemRepositoryWriterInterface $orderItemRepositoryWriter, OrderItemRepositoryDeleterInterface $orderItemRepositoryDeleter, AddonValueServiceInterface $addonValueService )

OrderItemRepository constructor.

OrderItemRepository constructor.

Parameters

$orderItemAttributeRepositoryFactory

Factory to create order item attribute repositories.

$orderItemRepositoryReader

Db reader for order item repository.

$orderItemRepositoryWriter

Db writer for order item repository.

$orderItemRepositoryDeleter

Db deleter for order item repository.

$addonValueService
Addon value service.
public integer
# addToOrder( IdType $orderId, OrderItemInterface $orderItem )

Adds an order item to the order item repository.

Adds an order item to the order item repository.

Parameters

$orderId
Order ID.
$orderItem
Order item to add.

Returns

integer
ID of the StoredOrderItem

Implementation of

OrderItemRepositoryInterface::addToOrder()
public OrderItemRepository
# store( StoredOrderItemInterface $storedOrderItem )

Saves the order item in the repository.

Saves the order item in the repository.

Parameters

$storedOrderItem
Order item to save.

Returns

OrderItemRepository
Same instance for method chaining.

Implementation of

OrderItemRepositoryInterface::store()
public StoredOrderItemInterface
# getItemById( IdType $orderItemId )

Returns a stored order ID by the given order item ID.

Returns a stored order ID by the given order item ID.

Parameters

$orderItemId
ID of the stored order item.

Returns

StoredOrderItemInterface
Stored order item.

Implementation of

OrderItemRepositoryInterface::getItemById()
public StoredOrderItemCollection
# getItemsByOrderId( IdType $orderId )

Returns a stored order item collection by the given order ID.

Returns a stored order item collection by the given order ID.

Parameters

$orderId
ID of the order.

Returns

StoredOrderItemCollection
Stored order item collection.

Implementation of

OrderItemRepositoryInterface::getItemsByOrderId()
public OrderItemRepository
# deleteItemById( IdType $orderItemId )

Deletes an order item from the repository by the given order item ID.

Deletes an order item from the repository by the given order item ID.

Parameters

$orderItemId
Order item ID.

Returns

OrderItemRepository
Same instance for method chaining.

Implementation of

OrderItemRepositoryInterface::deleteItemById()
public OrderItemRepository
# deleteItemsByOrderId( IdType $orderId )

Deletes order items from the repository by the given order ID.

Deletes order items from the repository by the given order ID.

Parameters

$orderId
Order ID.

Returns

OrderItemRepository
Same instance for method chaining.

Implementation of

OrderItemRepositoryInterface::deleteItemsByOrderId()
protected
# _delegateToAttributeRepositories( OrderItemInterface $orderItem, integer|null $storedOrderItemId = null )

Delegate to the attribute repository and save the attributes of the passed order item.

Delegate to the attribute repository and save the attributes of the passed order item.

Parameters

$orderItem
Order item which contain the attributes.
$storedOrderItemId

(Optional) Id of order item. When not set, its get by stored order item.

Returns


$this Same instance to make chained method calls possible.

Properties summary

protected OrderItemAttributeRepositoryFactoryInterface $orderItemAttributeRepositoryFactory

Order item attribute repository factory.

Order item attribute repository factory.

#
protected OrderItemRepositoryReaderInterface $orderItemRepositoryReader

Order item repository reader.

Order item repository reader.

#
protected OrderItemRepositoryWriterInterface $orderItemRepositoryWriter

Order item repository writer.

Order item repository writer.

#
protected OrderItemRepositoryDeleterInterface $orderItemRepositoryDeleter

Order item repository deleter.

Order item repository deleter.

#
protected AddonValueServiceInterface $addonValueService

Addon value service.

Addon value service.

#
API documentation generated by ApiGen