Class InvoicesOverviewAjaxController
Class InvoicesAjaxController
AJAX controller for the invoices main page.
-
HttpViewController
implements
HttpViewControllerInterface
-
┗
AdminHttpViewController
implements
AdminStatusOnlyInterface
-
┗
InvoicesOverviewAjaxController
Methods summary
public
actionDataTable( void )
DataTable Instance Callback
DataTable Instance Callback
Provides the data for the DataTables instance of the invoices overview.
public
actionFilterOptions( void )
: JsonHttpControllerResponse
Regenerate the filtering options and send them back to the client.
Regenerate the filtering options and send them back to the client.
After some specific changes the table filtering options will need to be updated because they do not contain
the required values from the table row. This method will use the InvoicesOverviewColumns class to fetch the
latest state of the filtering options.
Returns
protected
_getInvoiceListItems( void )
: InvoiceListItemCollection
Parse the DataTable request and fetch the InvoiceListItems that need to be displayed.
Parse the DataTable request and fetch the InvoiceListItems that need to be displayed.
Returns
protected
_getTableData( void )
: array
Get the table data.
This method will generate the data of the datatable instance. It can be overloaded in order to contain extra
data e.g. for a new column. The filtering of custom columns must be also done manually.
Returns
array
protected
_getRowData( InvoiceListItem $invoiceListItem )
: array
Set the
row data.
Set the
row data.
This method will return an array which will contain the data attributes of each row. These data are
used in JS as follows: "$('tr').data('propertyName')".
Overload this method to provide your own data to the rows.
Parameters
Returns
array
protected
_getTotalRecordCount( void )
: integer
Get the total record count of the "orders" table.
Get the total record count of the "orders" table.
Returns
integer
protected
_getFilteredRecordCount( void )
: integer
Get the filtered record count of the "orders" table.
Get the filtered record count of the "orders" table.
Returns
integer
protected
_getCurrencies( void )
: array
Get the currencies with all settings like decimal point.
Get the currencies with all settings like decimal point.
Returns
array
validateCurrentAdminStatus()
__construct(),
_callActionMethod(),
_getPostData(),
_getPostDataCollection(),
_getQueryParameter(),
_getQueryParametersCollection(),
_getServerData(),
_render(),
_validatePageToken(),
actionDefault(),
getTemplateFile(),
proceed()
Properties summary
protected
$db
: CI_DB_query_builder
$assets,
$contentView,
$httpContextReader,
$httpResponseProcessor,
$postDataArray,
$queryParametersArray,
$serverDataArray