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

Interfaces

  • OrderFactoryInterface
  • OrderInterface
  • OrderItemAttributeInterface
  • OrderItemAttributeRepositoryDeleterInterface
  • OrderItemAttributeRepositoryFactoryInterface
  • OrderItemAttributeRepositoryInterface
  • OrderItemAttributeRepositoryReaderInterface
  • OrderItemAttributeRepositoryWriterInterface
  • OrderItemFactoryInterface
  • OrderItemInterface
  • OrderItemPropertyFactoryInterface
  • OrderItemPropertyRepositoryDeleterInterface
  • OrderItemPropertyRepositoryReaderInterface
  • OrderItemPropertyRepositoryWriterInterface
  • OrderItemRepositoryDeleterInterface
  • OrderItemRepositoryInterface
  • OrderItemRepositoryReaderInterface
  • OrderItemRepositoryWriterInterface
  • OrderListGeneratorInterface
  • OrderObjectServiceInterface
  • OrderPaymentTypeInterface
  • OrderReadServiceInterface
  • OrderRepositoryDeleterInterface
  • OrderRepositoryInterface
  • OrderRepositoryReaderInterface
  • OrderRepositoryWriterInterface
  • OrderServiceSettingsInterface
  • OrderShippingTypeInterface
  • OrderStatusHistoryReaderInterface
  • OrderStatusHistoryWriterInterface
  • OrderTotalFactoryInterface
  • OrderTotalInterface
  • OrderTotalRepositoryDeleterInterface
  • OrderTotalRepositoryInterface
  • OrderTotalRepositoryReaderInterface
  • OrderTotalRepositoryWriterInterface
  • OrderWriteServiceInterface
  • StoredOrderItemAttributeInterface
  • StoredOrderItemInterface
  • StoredOrderTotalInterface

Interface OrderItemRepositoryInterface

Interface OrderItemRepositoryInterface

Direct known implementers

OrderItemRepository

Package: Order\Interfaces
Category: System
Located at CoreServices/Order/Repositories/Interface/OrderItemRepositoryInterface.inc.php

Methods summary

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
public OrderItemRepositoryInterface
# store( StoredOrderItemInterface $storedOrderItem )

Saves the order item in the repository.

Saves the order item in the repository.

Parameters

$storedOrderItem
Order item to save.

Returns

OrderItemRepositoryInterface
Same instance for method chaining.
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.
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.
public OrderItemRepositoryInterface
# 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

OrderItemRepositoryInterface
Same instance for method chaining.
public OrderItemRepositoryInterface
# 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

OrderItemRepositoryInterface
Same instance for method chaining.
API documentation generated by ApiGen