Class OrderListGenerator
| category |
System |
|---|---|
| package |
Order |
__construct(\CI_DB_query_builder $db, \PaymentTitleProvider $paymentTitleProvider, \ShippingTitleProvider $shippingTitleProvider)
\CI_DB_query_builder
\PaymentTitleProvider
\ShippingTitleProvider
_addressColumns(string $type) : string
| Throws |
|
|---|
stringWhether delivery or billing.
string
_createInvoiceNumberCollectionByOrderId( $orderId) : \StringCollection
_createMemoCollectionByCustomersId(integer $customersId) : \CustomerMemoCollection
_createOrderAddressBlockByRow(string $type, array $row) : \OrderAddressBlock
| Throws |
|
|---|
stringWhether delivery or billing.
arrayArray which contain data about an order result row.
\OrderAddressBlock
_createOrderPaymentType(array $row) : \OrderPaymentType
_createOrderShippingType(array $row) : \OrderShippingType
_createOrderType(string $type, array $row) : \OrderShippingType|\OrderPaymentType
| Throws |
|
|---|
stringWhether 'shipping' or 'payment', used to determine the expected order type class.
arrayRow array with data about the order type.
\OrderShippingType|\OrderPaymentType
_createTrackingLinksByOrderId(integer $orderId) : \StringCollection
| Throws |
|
|---|
integerId of current order.
\StringCollection
_createWithdrawalIdsByOrderId(integer $orderId) : \IdCollection
| Throws |
|
|---|
integerId of current order.
\IdCollection
_customersStatusColumns() : string
string
_filter(array $filterParameters, \IntType|null $startIndex = null, \IntType|null $maxCount = null, \StringType|null $orderBy = null) : \CI_DB_result
arrayContains the column slug-names and their values.
\CI_DB_result
_getPaymentOrShippingTitle(string $method, string $type) : string
stringPayment or shipping method.
stringWhether "payment" or "shipping".
string
_group() : \OrderListGenerator
_invoicesColumns() : string
string
_limit(\IntType $startIndex = null, \IntType $maxCount = null) : \OrderListGenerator
\IntType
\IntType
\OrderListGeneratorReturns the instance object for method chaining.
_order(\StringType $orderBy = null) : \OrderListGenerator
\StringType
\OrderListGeneratorReturns the instance object for method chaining.
_ordersColumns() : string
string
_ordersStatusColumns() : string
string
_ordersTotalColumns() : string
string
_prepareCollection(array $result) : \OrderListItemCollection
This method will prepare the collection object which is going to be returned by both the "get" and "filter" methods. The following values are required to be present in each row of the $result parameter:
- orders_id
- customers_id
- customers_firstname
- customers_lastname
- date_purchased
- payment_class
- payment_method
- shipping_class
- shipping_method
- orders_status_id
- orders_status_name
- total_sum| Throws |
|
|---|
arrayContains the order data.
\OrderListItemCollection
_select() : \OrderListGenerator
| Throws |
|
|---|
\OrderListGeneratorReturns the instance object for method chaining.
_setFilterArguments(array $filterParameters, \IntType|null $startIndex = null, \IntType|null $maxCount = null, \StringType|null $orderBy = null) : \OrderListGeneratorInterface
This method contains the filtering logic. It can be overloaded in order to provide a custom filtering logic.
| Throws |
|
|---|
arrayContains the column slug-names and their values.
\OrderListGeneratorInterfaceSame instance for chained method calls.
_setKeywordWhereClause(\StringType $keyword)
filterOrderList(array $filterParameters, \IntType|null $startIndex = null, \IntType|null $maxCount = null, \StringType|null $orderBy = null) : \OrderListItemCollection
The following slug names need to be used:
| Throws |
|
|---|
arrayContains the column slug-names and their values.
\OrderListItemCollection
filterOrderListCount(array $filterParameters) : integer
This number is useful for pagination functionality where the app needs to know the number of the filtered rows.
| Throws |
|
|---|
array
integer
getOrderListByConditions(string|array $conditions = array(), \IntType $startIndex = null, \IntType $maxCount = null, \StringType $orderBy = null) : \OrderListItemCollection
Returns an order list item collection.
| link |
http://www.codeigniter.com/user_guide/database/query_builder.html#looking-for-specific-data |
|---|---|
| Throws |
|
string|arrayProvide a WHERE clause string or an associative array (actually any parameter that is acceptable by the "where" method of the CI_DB_query_builder method).
\OrderListItemCollection
getOrderListByKeyword(\StringType $keyword, \IntType|null $startIndex = null, \IntType|null $maxCount = null, \StringType|null $orderBy = null) : mixed
| Throws |
|
|---|
mixed
getOrderListByKeywordCount(\StringType $keyword) : integer
integer
getOrderListCount() : integer
integer
FILTER_NO_VALUE
| var |
|---|
db : \CI_DB_query_builder
| var |
|---|
\CI_DB_query_builder
defaultLanguageId : integer
| var |
|---|
integer
shippingTitleProvider : \ShippingTitleProvider