phpDocumentor

OrderItemRepositoryReader
in package
implements OrderItemRepositoryReaderInterface

Class OrderItemRepositoryReader

Tags
category

System

subpackage

Repositories

Interfaces, Classes and Traits

OrderItemRepositoryReaderInterface
Interface OrderItemRepositoryReaderInterface

Table of Contents

$db  : CI_DB_query_builder
Query builder.
$orderItemFactory  : OrderItemFactoryInterface
Order item factory.
__construct()  : mixed
OrderItemRepositoryReader constructor.
getItemById()  : StoredOrderItemInterface
Returns an stored order item by the given order item ID.
getItemsByOrderId()  : StoredOrderItemCollection
Returns a collection of stored order items by the given order ID.
_parseOrderItemDownloads()  : OrderItemDownloadInformationCollection
Parse download information of order item.
_parseOrderItemGXCustomizerData()  : OrderItemGXCustomizerDataCollection
Parse gx customizer data of order item.
_setDbValues()  : mixed
Assign via the setter the StoredOrderItem values.

Properties

Methods

_parseOrderItemDownloads()

Parse download information of order item.

protected _parseOrderItemDownloads(array<string|int, mixed> $downloads) : OrderItemDownloadInformationCollection
Parameters
$downloads : array<string|int, mixed>

Contains the records of the "orders_products_download" table that are related to the order item.

Tags
throws
InvalidArgumentException
Return values
OrderItemDownloadInformationCollection

Returns a collection with the OrderItemDownload instances.

_parseOrderItemGXCustomizerData()

Parse gx customizer data of order item.

protected _parseOrderItemGXCustomizerData(array<string|int, mixed> $gxCustomizerData) : OrderItemGXCustomizerDataCollection
Parameters
$gxCustomizerData : array<string|int, mixed>

Contains the records of the "gm_gprint_orders_elements", "gm_gprint_orders_surfaces" and "gm_gprint_orders_surfaces_groups" table that are related to the order item.

Return values
OrderItemGXCustomizerDataCollection

Search results