Class OrderListGenerator
| category |
System |
|---|---|
| package |
Order |
__construct(\CI_DB_query_builder $query_builder)
\CI_DB_query_builder
_addressColumns(string $type) : string
| Throws |
|
|---|
stringWhether delivery or billing.
string
_applyDefaultSorting()
_applyPagination(\Pager|null $pager = null) : $this|\ProductListProvider
_applySorting(array $sorters = array()) : $this|\ProductListProvider
| Throws |
|
|---|
arrayArray of Sorter objects.
$this|\ProductListProviderSame instance for chained method calls.
_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 $orderBy = null) : \CI_DB_result
| deprecated |
Filter the order records. |
|---|
arrayContains the column slug-names and their values.
\StringType
\CI_DB_result
_filterWithPagerAndSorter(array $filterParameters, \Pager|null $pager = null, array $sorters = array()) : \CI_DB_result
arrayContains the column slug-names and their values.
array(Optional) array of Sorter objects with data sorting information
\CI_DB_result
_getFieldMap() : \array.
\array.
_getPaymentOrShippingTitle(string $method, string $type) : string
stringPayment or shipping method.
stringWhether "payment" or "shipping".
string
_group() : \OrderListGenerator
_invoicesColumns() : string
string
_order(\StringType $orderBy = null) : \OrderListGenerator
\StringType
\OrderListGeneratorReturns the instance object for method chaining.
_ordersColumns() : string
string
_ordersStatusColumns() : string
string
_ordersTotalColumns() : string
string
_parseOrderByString(\StringType|null $orderBy = null) : array
arraywith sort information structured as ['field'=>'', 'direction'=>''].
_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, \Pager|null $pager = null, array $sorters = array()) : \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.
array(Optional) array of Sorter objects with data sorting information
\OrderListGeneratorInterfaceSame instance for chained method calls.
_setKeywordWhereClause(\StringType $keyword)
_translateOrderByStringIntoArrayOfSorter(\StringType|null $orderBy = null) : array
arrayof Sorter objects.
_translateToDatabaseField(\string $fieldName) : \string.
| Throws |
|
|---|
\stringObject Field name.
\string.
_translateToJsonFieldName(\StringType $databaseFieldName) : string|FALSE
\StringTypethe database field name. It can be supplied as table.fieldName or fieldName.
string|FALSEwill return the field name or FALSE if the field doesn't exist.
filterOrderList(array $filterParameters, \Pager|null $pager = null, array $sorters = array()) : \OrderListItemCollection
The following slug names need to be used:
| Throws |
|
|---|
arrayContains the column slug-names and their values.
array(Optional) array of Sorter objects with data sorting information
\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(), \Pager|null $pager = null, array $sorters = array()) : \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).
array(Optional) array of Sorter objects with data sorting information
\OrderListItemCollection
getOrderListByKeyword(\StringType $keyword, \Pager|null $pager = null, array $sorters = array()) : mixed
| Throws |
|
|---|
array(Optional) array of Sorter objects with data sorting information
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