OrderStatusHistoryStorage
in package
implements
OrderStatusHistoryReaderInterface, OrderStatusHistoryWriterInterface
Class OrderStatusHistoryStorage
Tags
Interfaces, Classes and Traits
- OrderStatusHistoryReaderInterface
- Interface OrderStatusHistoryReaderInterface
- OrderStatusHistoryWriterInterface
- Interface OrderStatusHistoryWriterInterface
Table of Contents
- $db : CI_DB_query_builder
- __construct() : mixed
- OrderStatusHistoryStorage constructor.
- addStatusUpdate() : mixed
- Adds an order status history item.
- deleteHistory() : mixed
- Deletes all order status history items which are associated with the given order item id.
- getStatusHistory() : OrderStatusHistoryListItemCollection
- Returns a collection of order status history items by the given order item id.
Properties
$db
protected
CI_DB_query_builder
$db
Methods
__construct()
OrderStatusHistoryStorage constructor.
public
__construct(CI_DB_query_builder $db) : mixed
Parameters
- $db : CI_DB_query_builder
Return values
mixed —addStatusUpdate()
Adds an order status history item.
public
addStatusUpdate(IdType $orderId, IntType $newOrderStatusId, StringType $comment, BoolType $customerNotified[, IdType $customerId = null ]) : mixed
Parameters
- $orderId : IdType
- $newOrderStatusId : IntType
- $comment : StringType
- $customerNotified : BoolType
- $customerId : IdType = null
Return values
mixed —deleteHistory()
Deletes all order status history items which are associated with the given order item id.
public
deleteHistory(IdType $orderId) : mixed
Parameters
- $orderId : IdType
Return values
mixed —getStatusHistory()
Returns a collection of order status history items by the given order item id.
public
getStatusHistory(IdType $orderId) : OrderStatusHistoryListItemCollection
Parameters
- $orderId : IdType
-
Id of order item.