Class InvoicesOverviewColumns
Class InvoicesOverviewColumns
This class contains the definition of the invoices overview columns. Use it in every controller that needs the
column definition.
This class can be overloaded and more table columns can be added.
Methods summary
public
|
#
__construct( CI_DB_query_builder $db )
OrdersOverviewColumns constructor
OrdersOverviewColumns constructor
Overload this method and append the $columns array with new column definitions.
Parameters
- $db
- Will be used for database operations.
Throws
InvalidArgumentException
|
public
DataTableColumnCollection
|
#
getColumns( )
Get the DataTableColumnCollection of the table.
Get the DataTableColumnCollection of the table.
Returns
|
public
array
|
#
serializeColumns( )
Get the column definitions in a plain array.
Get the column definitions in a plain array.
Returns
array
|
public
array
|
#
_getGroupOptions( )
Get the customer group filtering options.
Get the customer group filtering options.
Returns
array
|
public
array
|
#
_getStatusOptions( )
Get the order status filtering options.
Get the order status filtering options.
Returns
array
|
public
array
|
#
_getPaymentOptions( )
Get the payment method filtering options.
Get the payment method filtering options.
Returns
array
|
protected
array
|
#
_getCountryOptions( )
Get the country filtering options.
Get the country filtering options.
Returns
array
|
protected
array
|
#
_getMultiSelectOptions( array $options )
Convert the option to [value, text] arrays.
Convert the option to [value, text] arrays.
The result of this method can be given back to multi_select widgets. If an option has different value
and text then the first entry must always be the value and the second the text to be displayed.
Parameters
- $options
- Contains the options of the multi_select widget.
Returns
array
|