Class InvoiceListGenerator
category |
System |
---|---|
package |
Invoice |
__construct(\CI_DB_query_builder $db, \PaymentTitleProvider $paymentTitleProvider)
_createMemoCollectionByCustomersId(integer $customersId) : \CustomerMemoCollection
Todo |
Equal to OrderListGenerator::_createMemoCollectionByCustomersId() method. Maybe outsource in abstract parent. |
---|
integer
Id of customer.
\CustomerMemoCollection
_createOrderAddressBlockByRow(string $type, array $row) : \OrderAddressBlock
Todo |
Equal to OrderListGenerator::_createOrderAddressBlockByRow() method. Maybe outsource in abstract parent. |
---|
string
Whether delivery or billing.
array
Array which contain data about an order result row.
\OrderAddressBlock
_createOrderType( $class, $method) : \OrderPaymentType
Throws |
|
---|
data about the class type.
data about the method type.
\OrderPaymentType
_filter(array $filterParameters, \IntType|null $startIndex = null, \IntType|null $maxCount = null, \StringType|null $orderBy = null) : \CI_DB_result
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.
\CI_DB_result
_group() : \InvoiceListGenerator
_invoicesColumns() : string
string
_limit(\IntType $startIndex = null, \IntType $maxCount = null) : $this|\InvoiceListGenerator
Todo |
Equal to OrderListGenerator::_limit() method. Maybe outsource in abstract parent. |
---|
\IntType
\IntType
$this|\InvoiceListGenerator
Returns the instance object for method chaining.
_order(\StringType $orderBy = null) : $this|\InvoiceListGenerator
Todo |
Equal to OrderListGenerator::_order() method. Maybe outsource in abstract parent. |
---|
\StringType
$this|\InvoiceListGenerator
Returns the instance object for method chaining.
_ordersColumns() : string
string
_ordersStatusColumns() : string
string
_prepareCollection(array $resultArray) : \InvoiceListItemCollection
array
Result array with fetched invoice data.
\InvoiceListItemCollection
_select() : $this|\InvoiceListGenerator
filterInvoiceList(array $filterParameters, \IntType|null $startIndex = null, \IntType|null $maxCount = null, \StringType|null $orderBy = null) : \InvoiceListItemCollection
The following slug names need to be used:
Throws |
|
---|
array
Contains the column slug-names and their values.
\InvoiceListItemCollection
filterInvoiceListCount(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
getInvoiceListByConditions(array $conditions = array(), \IntType|null $startIndex = null, \IntType|null $maxCount = null, \StringType|null $orderBy = null) : \InvoiceListItemCollection
The other arguments helps to control fetched data.
array
(Optional) Conditions for tht where clause.
\InvoiceListItemCollection
db : \CI_DB_query_builder
var |
---|
\CI_DB_query_builder
defaultLanguageId : integer
var |
---|
integer