Class OrderListGenerator
category |
System |
---|---|
package |
Order |
__construct(\CI_DB_query_builder $query_builder)
\CI_DB_query_builder
_addressColumns(string $type) : string
Throws |
|
---|
string
Whether delivery or billing.
string
_applyDefaultSorting()
_applyPagination(\Pager|null $pager = null) : $this|\ProductListProvider
_applySorting(array $sorters = array()) : $this|\ProductListProvider
Throws |
|
---|
array
Array of Sorter objects.
$this|\ProductListProvider
Same instance for chained method calls.
_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 $orderBy = null) : \CI_DB_result
deprecated |
Filter the order records. |
---|
array
Contains the column slug-names and their values.
\StringType
\CI_DB_result
_filterWithPagerAndSorter(array $filterParameters, \Pager|null $pager = null, array $sorters = array()) : \CI_DB_result
array
Contains 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
string
Payment or shipping method.
string
Whether "payment" or "shipping".
string
_group() : \OrderListGenerator
_invoicesColumns() : string
string
_order(\StringType $orderBy = null) : \OrderListGenerator
\StringType
\OrderListGenerator
Returns the instance object for method chaining.
_ordersColumns() : string
string
_ordersStatusColumns() : string
string
_ordersTotalColumns() : string
string
_parseOrderByString(\StringType|null $orderBy = null) : array
array
with 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 |
|
---|
array
Contains the order data.
\OrderListItemCollection
_select() : \OrderListGenerator
Throws |
|
---|
\OrderListGenerator
Returns 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 |
|
---|
array
Contains the column slug-names and their values.
array
(Optional) array of Sorter objects with data sorting information
\OrderListGeneratorInterface
Same instance for chained method calls.
_setKeywordWhereClause(\StringType $keyword)
_translateOrderByStringIntoArrayOfSorter(\StringType|null $orderBy = null) : array
array
of Sorter objects.
_translateToDatabaseField(\string $fieldName) : \string.
Throws |
|
---|
\string
Object Field name.
\string.
_translateToJsonFieldName(\StringType $databaseFieldName) : string|FALSE
\StringType
the database field name. It can be supplied as table.fieldName or fieldName.
string|FALSE
will 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 |
|
---|
array
Contains 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|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).
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