Class OrderItemRepositoryReader
| category |
System |
|---|---|
| package |
Order |
| subpackage |
Repositories |
__construct(\CI_DB_query_builder $db, \OrderItemFactoryInterface $orderItemFactory)
\CI_DB_query_builderQuery builder.
_parseOrderItemDownloads(array $downloads) : \OrderItemDownloadInformationCollection
| throws |
|---|
arrayContains the records of the "orders_products_download" table that are related to the order item.
\OrderItemDownloadInformationCollectionReturns a collection with the OrderItemDownload instances.
_setDbValues(\StoredOrderItemInterface $storedOrderItem, array $row)
| throws |
If $row contains invalid values. |
|---|---|
\StoredOrderItemInterface
array
getItemById(\IdType $orderItemId) : \StoredOrderItemInterface
| throws |
If no order item entry has been found. If download information contain invalid values. |
|---|
\StoredOrderItemInterfaceFetched order item.
getItemsByOrderId(\IdType $orderId) : \StoredOrderItemCollection
| throws |
If the database record contains invalid values. |
|---|
\StoredOrderItemCollectionFetched order item collection.
db : \CI_DB_query_builder
| var |
|---|
\CI_DB_query_builder
orderItemFactory : \OrderItemFactoryInterface