InvoicesOverviewTooltips
in package
Class InvoicesOverviewTooltips
This class generates the required HTML for the tooltips of each row in the invoices overview table. In order to be faster do not use any services but fetch the data directly with DB queries.
Tags
Table of Contents
- $contentView : ContentView
- $db : CI_DB_query_builder
- __construct() : mixed
- InvoicesOverviewTooltips constructor.
- getRowTooltips() : array<string|int, mixed>
- Get the row tooltip HTML for each displayed tooltip.
- _getCustomerAddresses() : string
- Get Customer Addresses Tooltip HTML
- _getCustomerMemos() : string
- Get Customer Memo Tooltip HTML
- _getInvoiceItems() : string
- Get Invoice Items Tooltip HTML
- _getOrderStatusHistory() : string
- Get Order Status History Tooltip HTML
- _render() : string
- Renders and returns a template file.
Properties
$contentView
protected
ContentView
$contentView
$db
protected
CI_DB_query_builder
$db
Methods
__construct()
InvoicesOverviewTooltips constructor.
public
__construct() : mixed
Return values
mixed —getRowTooltips()
Get the row tooltip HTML for each displayed tooltip.
public
getRowTooltips(InvoiceListItem $invoiceListItem) : array<string|int, mixed>
Parameters
- $invoiceListItem : InvoiceListItem
-
Contains the invoice list item data.
Return values
array<string|int, mixed> —_getCustomerAddresses()
Get Customer Addresses Tooltip HTML
protected
_getCustomerAddresses(InvoiceListItem $invoiceListItem) : string
Parameters
- $invoiceListItem : InvoiceListItem
Return values
string —_getCustomerMemos()
Get Customer Memo Tooltip HTML
protected
_getCustomerMemos(InvoiceListItem $invoiceListItem) : string
Parameters
- $invoiceListItem : InvoiceListItem
Return values
string —_getInvoiceItems()
Get Invoice Items Tooltip HTML
protected
_getInvoiceItems(InvoiceListItem $invoiceListItem) : string
Parameters
- $invoiceListItem : InvoiceListItem
Return values
string —_getOrderStatusHistory()
Get Order Status History Tooltip HTML
protected
_getOrderStatusHistory(InvoiceListItem $invoiceListItem) : string
Parameters
- $invoiceListItem : InvoiceListItem
Return values
string —_render()
Renders and returns a template file.
protected
_render(string $templateFile, array<string|int, mixed> $contentArray) : string
Parameters
- $templateFile : string
-
Template file to render.
- $contentArray : array<string|int, mixed>
-
Content array which represent the variables of the template.
Return values
string —Rendered template.