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 |
|
---|
string
Whether delivery or billing.
string
_createInvoiceNumberCollectionByOrderId( $orderId) : \StringCollection
_createMemoCollectionByCustomersId(integer $customersId) : \CustomerMemoCollection
_createOrderAddressBlockByRow(string $type, array $row) : \OrderAddressBlock
Throws |
|
---|
string
Whether delivery or billing.
array
Array 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 |
|
---|
string
Whether 'shipping' or 'payment', used to determine the expected order type class.
array
Row array with data about the order type.
\OrderShippingType|\OrderPaymentType
_createTrackingLinksByOrderId(integer $orderId) : \StringCollection
Throws |
|
---|
integer
Id of current order.
\StringCollection
_createWithdrawalIdsByOrderId(integer $orderId) : \IdCollection
Throws |
|
---|
integer
Id 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
array
Contains the column slug-names and their values.
\CI_DB_result
_getPaymentOrShippingTitle(string $method, string $type) : string
string
Payment or shipping method.
string
Whether "payment" or "shipping".
string
_group() : \OrderListGenerator
_invoicesColumns() : string
string
_limit(\IntType $startIndex = null, \IntType $maxCount = null) : \OrderListGenerator
\IntType
\IntType
\OrderListGenerator
Returns the instance object for method chaining.
_order(\StringType $orderBy = null) : \OrderListGenerator
\StringType
\OrderListGenerator
Returns 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 |
|
---|
array
Contains the order data.
\OrderListItemCollection
_select() : \OrderListGenerator
Throws |
|
---|
\OrderListGenerator
Returns 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 |
|
---|
array
Contains the column slug-names and their values.
\OrderListGeneratorInterface
Same 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 |
|
---|
array
Contains 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|array
Provide 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